From: Jason Ekstrand Date: Tue, 20 Oct 2015 22:35:13 +0000 (-0700) Subject: nir/spirv: Fix a typo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59bae36ffbe196a279e3044b2604a05886728d99;p=mesa.git nir/spirv: Fix a typo --- 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;