diff options
author | Chia-I Wu <[email protected]> | 2013-06-24 16:26:25 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-06-25 13:51:59 +0800 |
commit | 855b684141ddbdbc8f10a80f185c47b3a813c975 (patch) | |
tree | d8bd6602b0034515414a9b93d5aa27506875a8a1 /src/gallium/drivers/ilo/shader | |
parent | 9b18df6e087a4db8ed5ed38bcc6b1db34fa95586 (diff) |
ilo: speed up ilo_shader_select_kernel_routing() a bit
Remember the order of the source attributes and avoid recomputation when it
does not change.
Diffstat (limited to 'src/gallium/drivers/ilo/shader')
-rw-r--r-- | src/gallium/drivers/ilo/shader/ilo_shader_internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/shader/ilo_shader_internal.h b/src/gallium/drivers/ilo/shader/ilo_shader_internal.h index d9ae2fa0a8f..07e8ee2f683 100644 --- a/src/gallium/drivers/ilo/shader/ilo_shader_internal.h +++ b/src/gallium/drivers/ilo/shader/ilo_shader_internal.h @@ -116,6 +116,10 @@ struct ilo_shader { void *kernel; int kernel_size; + bool routing_initialized; + int routing_src_semantics[PIPE_MAX_SHADER_OUTPUTS]; + int routing_src_indices[PIPE_MAX_SHADER_OUTPUTS]; + uint32_t routing_sprite_coord_enable; struct ilo_kernel_routing routing; /* what does the push constant buffer consist of? */ |