vk/pipeline: Add support for disabling the scissor in "extra"
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user