mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
vk/pipeline: Add support for disabling the scissor in "extra"
This commit is contained in:
parent
d77c34d1d2
commit
4336a1bc00
2 changed files with 2 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ emit_rs_state(struct anv_pipeline *pipeline, VkPipelineRsStateCreateInfo *info,
|
|||
.CullMode = vk_to_gen_cullmode[info->cullMode],
|
||||
.FrontFaceFillMode = vk_to_gen_fillmode[info->fillMode],
|
||||
.BackFaceFillMode = vk_to_gen_fillmode[info->fillMode],
|
||||
.ScissorRectangleEnable = true,
|
||||
.ScissorRectangleEnable = !(extra && extra->disable_scissor),
|
||||
.ViewportZClipTestEnable = info->depthClipEnable);
|
||||
|
||||
anv_batch_emit(&pipeline->batch, GEN8_3DSTATE_SBE,
|
||||
|
|
|
|||
|
|
@ -546,6 +546,7 @@ struct anv_pipeline {
|
|||
struct anv_pipeline_create_info {
|
||||
bool use_repclear;
|
||||
bool disable_viewport;
|
||||
bool disable_scissor;
|
||||
bool use_rectlist;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue