From 59bae36ffbe196a279e3044b2604a05886728d99 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 20 Oct 2015 15:35:13 -0700 Subject: [PATCH] nir/spirv: Fix a typo --- src/glsl/nir/spirv_to_nir.c | 4 ++-- 1 file 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; -- 2.30.2