diff options
author | Chia-I Wu <[email protected]> | 2015-06-02 23:09:53 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-15 01:07:10 +0800 |
commit | da6e45fcbc4570df0ec4b8c8885f33a206da3552 (patch) | |
tree | 2a0e9d0ff43eb00e8b8d4acc0398445febc3f6a7 /src/gallium/drivers/ilo/shader | |
parent | 5a52627c4f9215649b0f244af96512b9aafceaa1 (diff) |
ilo: embed ilo_state_sbe in ilo_shader
Diffstat (limited to 'src/gallium/drivers/ilo/shader')
-rw-r--r-- | src/gallium/drivers/ilo/shader/ilo_shader_internal.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/gallium/drivers/ilo/shader/ilo_shader_internal.h b/src/gallium/drivers/ilo/shader/ilo_shader_internal.h index 603d13e5766..31f731f29cd 100644 --- a/src/gallium/drivers/ilo/shader/ilo_shader_internal.h +++ b/src/gallium/drivers/ilo/shader/ilo_shader_internal.h @@ -28,6 +28,7 @@ #ifndef ILO_SHADER_INTERNAL_H #define ILO_SHADER_INTERNAL_H +#include "core/ilo_state_sbe.h" #include "core/ilo_state_sol.h" #include "ilo_common.h" @@ -74,6 +75,19 @@ struct ilo_shader_variant { uint32_t saturate_tex_coords[3]; }; +struct ilo_kernel_routing { + bool initialized; + bool is_point; + bool light_twoside; + uint32_t sprite_coord_enable; + int sprite_coord_mode; + int src_len; + int src_semantics[PIPE_MAX_SHADER_OUTPUTS]; + int src_indices[PIPE_MAX_SHADER_OUTPUTS]; + + struct ilo_state_sbe sbe; +}; + /** * A compiled shader. */ @@ -125,10 +139,6 @@ 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? */ |