zink: improve packing for pipeline dynamic state1 info

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16838>
This commit is contained in:
Mike Blumenkrantz 2022-05-31 15:13:10 -04:00 committed by Marge Bot
parent c1639d7bda
commit bee8a7385d
2 changed files with 3 additions and 3 deletions

View File

@ -703,7 +703,7 @@ zink_draw(struct pipe_context *pctx,
bool rast_state_changed = ctx->rast_state_changed;
if (DYNAMIC_STATE != ZINK_NO_DYNAMIC_STATE && (BATCH_CHANGED || rast_state_changed))
VKCTX(CmdSetFrontFaceEXT)(batch->state->cmdbuf, ctx->gfx_pipeline_state.dyn_state1.front_face);
VKCTX(CmdSetFrontFaceEXT)(batch->state->cmdbuf, (VkFrontFace)ctx->gfx_pipeline_state.dyn_state1.front_face);
if ((BATCH_CHANGED || rast_state_changed) &&
screen->info.have_EXT_line_rasterization && rast_state->base.line_stipple_enable)
VKCTX(CmdSetLineStippleEXT)(batch->state->cmdbuf, rast_state->base.line_stipple_factor, rast_state->base.line_stipple_pattern);

View File

@ -55,8 +55,8 @@ struct zink_gfx_pipeline_state {
bool dirty;
struct {
VkFrontFace front_face;
unsigned num_viewports;
uint8_t front_face; //VkFrontFace:1
uint16_t num_viewports;
struct zink_depth_stencil_alpha_hw_state *depth_stencil_alpha_state; //non-dynamic state
} dyn_state1;