OSDN Git Service

glsl: update default precision qualifier when it is set in the shader
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 21 Oct 2016 06:23:59 +0000 (08:23 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Wed, 26 Oct 2016 09:57:07 +0000 (11:57 +0200)
commit0e742926c6895dcaf8bdbe43022c8a0bc74fdd96
treea6ef7077a917f9fc44bdfb727aefe282a2a76e69
parentdfbdb2c0b3559c46d93f10d636a88b9541304fc7
glsl: update default precision qualifier when it is set in the shader

Default precision qualifier for a data type could be set several times
inside a shader. This patch allows to update the default precision
qualifier for the given type that is saved in the symbol table.

If it is not in the symbol table, just add it.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97804
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/glsl_symbol_table.cpp