mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 08:26:10 +00:00
assembler: Rename dp_gen6 to gen6_dp and sync with Mesa's
The purpose of this commit is to synchronize opcode definitions across the gen4asm assembler and mesa. I had to drop how mesa splits msg_control as the current assembly language gives access the the whole msg_control field. Recompiling the xorg and the intel driver of libva shaders doesn't show any difference in the assembly created. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
668e0dff7d
commit
1f1ad59746
@ -1513,18 +1513,28 @@ struct brw_instruction
|
|||||||
GLuint end_of_thread:1;
|
GLuint end_of_thread:1;
|
||||||
} dp_write_gen6;
|
} dp_write_gen6;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Message for the Sandybridge Render Cache Data Port.
|
||||||
|
*
|
||||||
|
* Most fields are defined in the Sandybridge PRM, Volume 4 Part 1,
|
||||||
|
* Section 3.9.2.1.1: Message Descriptor.
|
||||||
|
*
|
||||||
|
* "Slot Group Select" and "Last Render Target" are part of the
|
||||||
|
* 5-bit message control for Render Target Write messages. See
|
||||||
|
* Section 3.9.9.2.1 of the same volume.
|
||||||
|
*/
|
||||||
struct {
|
struct {
|
||||||
GLuint binding_table_index:8;
|
GLuint binding_table_index:8;
|
||||||
GLuint msg_control:5;
|
GLuint msg_control:5;
|
||||||
GLuint msg_type:4;
|
GLuint msg_type:4;
|
||||||
GLuint send_commit_msg:1; /* ignore on read message */
|
GLuint send_commit_msg:1;
|
||||||
GLuint pad0:1;
|
GLuint pad0:1;
|
||||||
GLuint header_present:1;
|
GLuint header_present:1;
|
||||||
GLuint response_length:5;
|
GLuint response_length:5;
|
||||||
GLuint msg_length:4;
|
GLuint msg_length:4;
|
||||||
GLuint pad1:2;
|
GLuint pad1:2;
|
||||||
GLuint end_of_thread:1;
|
GLuint end_of_thread:1;
|
||||||
} dp_gen6;
|
} gen6_dp;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
GLuint binding_table_index:8;
|
GLuint binding_table_index:8;
|
||||||
|
@ -1471,10 +1471,10 @@ msgtarget: NULL_TOKEN
|
|||||||
YYERROR;
|
YYERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
$$.bits3.dp_gen6.send_commit_msg = $11;
|
$$.bits3.gen6_dp.send_commit_msg = $11;
|
||||||
$$.bits3.dp_gen6.binding_table_index = $9;
|
$$.bits3.gen6_dp.binding_table_index = $9;
|
||||||
$$.bits3.dp_gen6.msg_control = $7;
|
$$.bits3.gen6_dp.msg_control = $7;
|
||||||
$$.bits3.dp_gen6.msg_type = $5;
|
$$.bits3.gen6_dp.msg_type = $5;
|
||||||
} else if (!IS_GENp(5)) {
|
} else if (!IS_GENp(5)) {
|
||||||
fprintf (stderr, "Gen6- doesn't support data port for sampler/render/constant/data cache\n");
|
fprintf (stderr, "Gen6- doesn't support data port for sampler/render/constant/data cache\n");
|
||||||
YYERROR;
|
YYERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user