mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
i965: Add a header_present flag for setting up dp read messages.
As of gen7, we can skip the header on some messages, and this can make optimization on those messages much nicer when you've got GRFs instead of MRFs as the source.
This commit is contained in:
parent
8f05b2f2b0
commit
78e9c57a3e
3 changed files with 7 additions and 1 deletions
|
|
@ -907,6 +907,7 @@ void brw_set_dp_read_message(struct brw_compile *p,
|
|||
GLuint msg_type,
|
||||
GLuint target_cache,
|
||||
GLuint msg_length,
|
||||
bool header_present,
|
||||
GLuint response_length);
|
||||
|
||||
void brw_set_dp_write_message(struct brw_compile *p,
|
||||
|
|
|
|||
|
|
@ -620,6 +620,7 @@ brw_set_dp_read_message(struct brw_compile *p,
|
|||
GLuint msg_type,
|
||||
GLuint target_cache,
|
||||
GLuint msg_length,
|
||||
bool header_present,
|
||||
GLuint response_length)
|
||||
{
|
||||
struct brw_context *brw = p->brw;
|
||||
|
|
@ -638,7 +639,7 @@ brw_set_dp_read_message(struct brw_compile *p,
|
|||
}
|
||||
|
||||
brw_set_message_descriptor(p, insn, sfid, msg_length, response_length,
|
||||
true, false);
|
||||
header_present, false);
|
||||
|
||||
if (intel->gen >= 7) {
|
||||
insn->bits3.gen7_dp.binding_table_index = binding_table_index;
|
||||
|
|
@ -1967,6 +1968,7 @@ brw_oword_block_read_scratch(struct brw_compile *p,
|
|||
BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ, /* msg_type */
|
||||
BRW_DATAPORT_READ_TARGET_RENDER_CACHE,
|
||||
1, /* msg_length */
|
||||
true, /* header_present */
|
||||
rlen);
|
||||
}
|
||||
}
|
||||
|
|
@ -2024,6 +2026,7 @@ void brw_oword_block_read(struct brw_compile *p,
|
|||
BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ,
|
||||
BRW_DATAPORT_READ_TARGET_DATA_CACHE,
|
||||
1, /* msg_length */
|
||||
true, /* header_present */
|
||||
1); /* response_length (1 reg, 2 owords!) */
|
||||
|
||||
brw_pop_insn_state(p);
|
||||
|
|
|
|||
|
|
@ -463,6 +463,7 @@ vec4_generator::generate_scratch_read(vec4_instruction *inst,
|
|||
msg_type,
|
||||
BRW_DATAPORT_READ_TARGET_RENDER_CACHE,
|
||||
2, /* mlen */
|
||||
true, /* header_present */
|
||||
1 /* rlen */);
|
||||
}
|
||||
|
||||
|
|
@ -596,6 +597,7 @@ vec4_generator::generate_pull_constant_load(vec4_instruction *inst,
|
|||
msg_type,
|
||||
BRW_DATAPORT_READ_TARGET_DATA_CACHE,
|
||||
2, /* mlen */
|
||||
true, /* header_present */
|
||||
1 /* rlen */);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue