diff options
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r-- | src/freedreno/vulkan/tu_private.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h index adaad2dfb02..2828228184a 100644 --- a/src/freedreno/vulkan/tu_private.h +++ b/src/freedreno/vulkan/tu_private.h @@ -78,7 +78,7 @@ typedef uint32_t xcb_window_t; #define MAX_VERTEX_ATTRIBS 32 #define MAX_RTS 8 #define MAX_VSC_PIPES 32 -#define MAX_VIEWPORTS 16 +#define MAX_VIEWPORTS 1 #define MAX_SCISSORS 16 #define MAX_DISCARD_RECTANGLES 4 #define MAX_PUSH_CONSTANTS_SIZE 128 @@ -991,8 +991,19 @@ struct tu_pipeline enum pc_di_primtype primtype; bool primitive_restart; } ia; + + struct + { + struct tu_cs_entry state_ib; + } vp; }; +void +tu6_emit_viewport(struct tu_cs *cs, const VkViewport *viewport); + +void +tu6_emit_scissor(struct tu_cs *cs, const VkRect2D *scissor); + struct tu_userdata_info * tu_lookup_user_sgpr(struct tu_pipeline *pipeline, gl_shader_stage stage, |