diff options
author | Jason Ekstrand <[email protected]> | 2015-06-19 14:46:03 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-06-23 15:33:16 -0700 |
commit | c7893dc3c590b86787d8118e3920debaea3f16da (patch) | |
tree | e347e8de39fbb73cd208e8688499733cd6b6455e /src/mesa/drivers/dri/i965/brw_vec4.h | |
parent | 6e255a3299c9ec5208cb5519b5da2edb0ce2972b (diff) |
i965: Use a single index per shader for shader_time.
Previously, each shader took 3 shader time indices which were potentially
at arbirary points in the shader time buffer. Now, each shader gets a
single index which refers to 3 consecutive locations in the buffer. This
simplifies some of the logic at the cost of having a magic 3 a few places.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h index 2228d478d09..8d332af17f4 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_vec4.h @@ -85,9 +85,7 @@ public: gl_shader_stage stage, void *mem_ctx, bool no_spills, - shader_time_shader_type st_base, - shader_time_shader_type st_written, - shader_time_shader_type st_reset); + shader_time_shader_type st_type); ~vec4_visitor(); dst_reg dst_null_f() @@ -345,7 +343,7 @@ public: void emit_shader_time_begin(); void emit_shader_time_end(); - void emit_shader_time_write(enum shader_time_shader_type type, + void emit_shader_time_write(int shader_time_index, int shader_time_subindex, src_reg value); void emit_untyped_atomic(unsigned atomic_op, unsigned surf_index, @@ -413,9 +411,7 @@ private: */ const bool no_spills; - const shader_time_shader_type st_base; - const shader_time_shader_type st_written; - const shader_time_shader_type st_reset; + const shader_time_shader_type st_type; }; |