[Mesa-dev] [PATCH 14/21] st/mesa: use common patch inputs read field

Timothy Arceri timothy.arceri at collabora.com
Thu Oct 20 08:47:04 UTC 2016


---
 src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +-
 src/mesa/state_tracker/st_program.c        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 8d8df9d..1d20ff5 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -6477,7 +6477,7 @@ get_mesa_program_tgsi(struct gl_context *ctx,
    shrink_array_declarations(v->inputs, v->num_inputs,
                              &prog->info.inputs_read,
                              prog->info.double_inputs_read,
-                             &prog->PatchInputsRead);
+                             &prog->info.patch_inputs_read);
    shrink_array_declarations(v->outputs, v->num_outputs,
                              &prog->info.outputs_written, 0ULL,
                              &prog->PatchOutputsWritten);
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index b1ca0c6..eef99e6 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -1303,7 +1303,7 @@ st_translate_program_common(struct st_context *st,
 
    /* Also add patch inputs. */
    for (attr = 0; attr < 32; attr++) {
-      if (prog->PatchInputsRead & (1u << attr)) {
+      if (prog->info.patch_inputs_read & (1u << attr)) {
          GLuint slot = num_inputs++;
          GLuint patch_attr = VARYING_SLOT_PATCH0 + attr;
 
-- 
2.7.4



More information about the mesa-dev mailing list