From 8dfc9f038ee3f6a57f0a3f3cc641b0866a6111b7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 16 Oct 2013 11:51:22 -0700 Subject: i965/fs: Use the gen7 scratch read opcode when possible. This avoids a lot of message setup we had to do otherwise. Improves GLB2.7 performance with register spilling force enabled by 1.6442% +/- 0.553218% (n=4). v2: Use BRW_PREDICATE_NONE, improve a comment (by Paul). Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_eu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_eu.h') diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h index 1a448d055c3..01f8bccdb2f 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.h +++ b/src/mesa/drivers/dri/i965/brw_eu.h @@ -379,6 +379,11 @@ void brw_oword_block_write_scratch(struct brw_compile *p, int num_regs, GLuint offset); +void gen7_block_read_scratch(struct brw_compile *p, + struct brw_reg dest, + int num_regs, + GLuint offset); + void brw_shader_time_add(struct brw_compile *p, struct brw_reg payload, uint32_t surf_index); -- cgit v1.2.3