From 4336a1bc00eb7ecf0b4c923ebc536df548232621 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 12 May 2015 12:52:53 -0700 Subject: [PATCH] vk/pipeline: Add support for disabling the scissor in "extra" --- src/vulkan/pipeline.c | 2 +- src/vulkan/private.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/pipeline.c b/src/vulkan/pipeline.c index 6b0a1366a3c..a82466ce3da 100644 --- a/src/vulkan/pipeline.c +++ b/src/vulkan/pipeline.c @@ -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, diff --git a/src/vulkan/private.h b/src/vulkan/private.h index 4b47c1f55bb..778e2b0704c 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -546,6 +546,7 @@ struct anv_pipeline { struct anv_pipeline_create_info { bool use_repclear; bool disable_viewport; + bool disable_scissor; bool use_rectlist; }; -- 2.30.2