st/mesa: use common patch outputs written field
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 20 Oct 2016 05:24:58 +0000 (16:24 +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 fb8c4e3fe7b4ed8dac2ab3d1d4556ba3c4b2be86..61c3557b7d0fb69124b15f554b5b08c15776710f 100644 (file)
@@ -6510,7 +6510,7 @@ get_mesa_program_tgsi(struct gl_context *ctx,
                              &prog->info.patch_inputs_read);
    shrink_array_declarations(v->outputs, v->num_outputs,
                              &prog->info.outputs_written, 0ULL,
-                             &prog->PatchOutputsWritten);
+                             &prog->info.patch_outputs_written);
    count_resources(v, prog);
 
    /* The GLSL IR won't be needed anymore. */
index eef99e6ea6e929e1e0e32b4b84efdaa1783dd9ae..0822509c4e582585e5306400361bb41d6389a368 100644 (file)
@@ -1427,7 +1427,7 @@ st_translate_program_common(struct st_context *st,
 
    /* Also add patch outputs. */
    for (attr = 0; attr < 32; attr++) {
-      if (prog->PatchOutputsWritten & (1u << attr)) {
+      if (prog->info.patch_outputs_written & (1u << attr)) {
          GLuint slot = num_outputs++;
          GLuint patch_attr = VARYING_SLOT_PATCH0 + attr;