st/mesa: use common patch inputs read field
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 20 Oct 2016 05:19:34 +0000 (16:19 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 26 Oct 2016 03:29:36 +0000 (14:29 +1100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_program.c

index dba0e9c8bc409c93892ee7f43a5e202385989e0b..fb8c4e3fe7b4ed8dac2ab3d1d4556ba3c4b2be86 100644 (file)
@@ -6507,7 +6507,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);
index b1ca0c6d6a292fc91c367def9c437a36bd590491..eef99e6ea6e929e1e0e32b4b84efdaa1783dd9ae 100644 (file)
@@ -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;