GLuint end_of_thread:1;
} gen6_dp;
- struct {
- GLuint binding_table_index:8;
- GLuint msg_control:6;
- GLuint msg_type:4;
- GLuint category:1;
- GLuint header_present:1;
- GLuint response_length:5;
- GLuint msg_length:4;
- GLuint pad1:2;
- GLuint end_of_thread:1;
- } dp_gen7;
+ /**
+ * Message for any of the Gen7 Data Port caches.
+ *
+ * Most fields are defined in BSpec volume 5c.2 Data Port / Messages /
+ * Data Port Messages / Message Descriptor. Once again, "Slot Group
+ * Select" and "Last Render Target" are part of the 6-bit message
+ * control for Render Target Writes.
+ */
+ struct {
+ GLuint binding_table_index:8;
+ GLuint msg_control:6;
+ GLuint msg_type:4;
+ GLuint category:1;
+ GLuint header_present:1;
+ GLuint response_length:5;
+ GLuint msg_length:4;
+ GLuint pad2:2;
+ GLuint end_of_thread:1;
+ } gen7_dp;
+ /** @} */
struct {
GLuint opcode:1;
$$.bits2.send_gen5.sfid =
BRW_MESSAGE_TARGET_DP_SC;
$$.bits3.generic_gen5.header_present = 1;
- $$.bits3.dp_gen7.binding_table_index = $3;
- $$.bits3.dp_gen7.msg_control = $7;
- $$.bits3.dp_gen7.msg_type = $9;
+ $$.bits3.gen7_dp.binding_table_index = $3;
+ $$.bits3.gen7_dp.msg_control = $7;
+ $$.bits3.gen7_dp.msg_type = $9;
} else if (IS_GENx(6)) {
$$.bits2.send_gen5.sfid =
BRW_MESSAGE_TARGET_DP_SC;
$$.bits2.send_gen5.sfid =
BRW_MESSAGE_TARGET_DP_RC;
$$.bits3.generic_gen5.header_present = 1;
- $$.bits3.dp_gen7.binding_table_index = $3;
- $$.bits3.dp_gen7.msg_control = $5;
- $$.bits3.dp_gen7.msg_type = $7;
+ $$.bits3.gen7_dp.binding_table_index = $3;
+ $$.bits3.gen7_dp.msg_control = $5;
+ $$.bits3.gen7_dp.msg_type = $7;
} else if (IS_GENx(6)) {
$$.bits2.send_gen5.sfid =
BRW_MESSAGE_TARGET_DP_RC;
$$.bits2.send_gen5.sfid =
BRW_MESSAGE_TARGET_DP_RC;
$$.bits3.generic_gen5.header_present = ($11 != 0);
- $$.bits3.dp_gen7.binding_table_index = $3;
- $$.bits3.dp_gen7.msg_control = $5;
- $$.bits3.dp_gen7.msg_type = $7;
+ $$.bits3.gen7_dp.binding_table_index = $3;
+ $$.bits3.gen7_dp.msg_control = $5;
+ $$.bits3.gen7_dp.msg_type = $7;
} else if (IS_GENx(6)) {
$$.bits2.send_gen5.sfid =
BRW_MESSAGE_TARGET_DP_RC;
YYERROR;
}
- $$.bits3.dp_gen7.category = $11;
- $$.bits3.dp_gen7.binding_table_index = $9;
- $$.bits3.dp_gen7.msg_control = $7;
- $$.bits3.dp_gen7.msg_type = $5;
+ $$.bits3.gen7_dp.category = $11;
+ $$.bits3.gen7_dp.binding_table_index = $9;
+ $$.bits3.gen7_dp.msg_control = $7;
+ $$.bits3.gen7_dp.msg_type = $5;
} else if (IS_GENx(6)) {
if ($3 != BRW_MESSAGE_TARGET_DP_SC &&
$3 != BRW_MESSAGE_TARGET_DP_RC &&