vk/pipeline: Add support for disabling the scissor in "extra"
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 May 2015 19:52:53 +0000 (12:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 May 2015 19:53:01 +0000 (12:53 -0700)
src/vulkan/pipeline.c
src/vulkan/private.h

index 6b0a136..a82466c 100644 (file)
@@ -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,
index 4b47c1f..778e2b0 100644 (file)
@@ -546,6 +546,7 @@ struct anv_pipeline {
 struct anv_pipeline_create_info {
    bool                                         use_repclear;
    bool                                         disable_viewport;
+   bool                                         disable_scissor;
    bool                                         use_rectlist;
 };