glsl/ast: assign explicit_xfb_buffer from correct place
authorDave Airlie <airlied@redhat.com>
Wed, 25 May 2016 23:23:54 +0000 (09:23 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 26 May 2016 02:17:03 +0000 (12:17 +1000)
This fixes:
GL44-CTS.tessellation_shader.tessellation_control_to_tessellation_evaluation.data_pass_through

As the OUT_TC interface structures weren't matching because
one of them had explicit_xfb_buffer set when it shouldn't.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast_to_hir.cpp

index 1ddb2bf43dbcdf318cf934aa3633dc429c212e38..b818de6fe1c2e94d76ca62bfb0dfe40c0ae42e89 100644 (file)
@@ -6656,7 +6656,7 @@ ast_process_struct_or_iface_block_members(exec_list *instructions,
          xfb_buffer = (int) qual_xfb_buffer;
       } else {
          if (layout)
-            explicit_xfb_buffer = layout->flags.q.xfb_buffer;
+            explicit_xfb_buffer = layout->flags.q.explicit_xfb_buffer;
          xfb_buffer = (int) block_xfb_buffer;
       }