intel: fix compiler build
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 13 Mar 2017 11:58:44 +0000 (12:58 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 13 Mar 2017 12:09:24 +0000 (13:09 +0100)
compiler/brw_vec4_gs_visitor.cpp:744:39: error:
‘GEN7_MAX_GS_OUTPUT_VERTEX_SIZE_BYTES’ was not declared in this scope
           output_vertex_size_bytes <= GEN7_MAX_GS_OUTPUT_VERTEX_SIZE_BYTES);

Fixes: d0d4a5f43b4 ("i965: split EU defines to brw_eu_defines.h")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/compiler/brw_eu_defines.h
src/mesa/drivers/dri/i965/brw_defines.h

index 5848f920448cfa126e1b3b929c61d17c63e51e48..f0b0d5c2a06f9fe80aa192d1f3240d31f9c0a741 100644 (file)
@@ -1240,6 +1240,13 @@ enum brw_message_target {
 
 /* GS Thread Payload
  */
+
+/* 3DSTATE_GS "Output Vertex Size" has an effective maximum of 62. It's
+ * counted in multiples of 16 bytes.
+ */
+#define GEN7_MAX_GS_OUTPUT_VERTEX_SIZE_BYTES            (62*16)
+
+
 /* R0 */
 # define GEN7_GS_PAYLOAD_INSTANCE_ID_SHIFT             27
 
index 885e9ddf2b3e7a6a94bf233943beb01820525e84..efed5a626d06997494d9a6d36e7ed20c2f1b7769 100644 (file)
@@ -678,14 +678,6 @@ enum brw_wrap_mode {
 # define BRW_GS_EDGE_INDICATOR_0                       (1 << 8)
 # define BRW_GS_EDGE_INDICATOR_1                       (1 << 9)
 
-/* GS Thread Payload
- */
-
-/* 3DSTATE_GS "Output Vertex Size" has an effective maximum of 62.  It's
- * counted in multiples of 16 bytes.
- */
-#define GEN7_MAX_GS_OUTPUT_VERTEX_SIZE_BYTES           (62*16)
-
 #define _3DSTATE_HS                             0x781B /* GEN7+ */
 /* DW1 */
 # define GEN7_HS_SAMPLER_COUNT_MASK                     INTEL_MASK(29, 27)