summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-20 15:35:13 -0700
committerJason Ekstrand <[email protected]>2015-10-20 15:35:13 -0700
commit59bae36ffbe196a279e3044b2604a05886728d99 (patch)
tree4e3bc0086a21a28d0df51d61ea3e0e24015dccec
parent44b22ca441e2c9adf9edc718a81d57352cfbb057 (diff)
nir/spirv: Fix a typo
-rw-r--r--src/glsl/nir/spirv_to_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c
index 52bc335637f..748c0dd7f04 100644
--- a/src/glsl/nir/spirv_to_nir.c
+++ b/src/glsl/nir/spirv_to_nir.c
@@ -789,7 +789,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, int member,
if (mode == nir_var_shader_in || mode == nir_var_system_value)
var->data.read_only = true;
- if (builtin == SpvBuiltInPosition || builtin == SpvBuiltInSamplePosition)
+ if (builtin == SpvBuiltInFragCoord || builtin == SpvBuiltInSamplePosition)
var->data.origin_upper_left = b->origin_upper_left;
b->builtins[dec->literals[0]] = var;
@@ -839,7 +839,7 @@ get_builtin_variable(struct vtn_builder *b,
var->data.location = location;
var->data.explicit_location = true;
- if (builtin == SpvBuiltInPosition || builtin == SpvBuiltInSamplePosition)
+ if (builtin == SpvBuiltInFragCoord || builtin == SpvBuiltInSamplePosition)
var->data.origin_upper_left = b->origin_upper_left;
b->builtins[builtin] = var;