anv: Replace ::disable_scissor with ::use_rectlists
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 13 Apr 2016 18:59:54 +0000 (11:59 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 14 Apr 2016 01:00:41 +0000 (18:00 -0700)
Meta currently uses screenspace RECTLIST primitives that lie within
the framebuffer rectangle. Since this behavior shouldn't change in the
future, disable the scissor operation whenever rectlists are used.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/intel/vulkan/anv_meta_blit.c
src/intel/vulkan/anv_meta_blit2d.c
src/intel/vulkan/anv_meta_clear.c
src/intel/vulkan/anv_meta_resolve.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/gen7_pipeline.c
src/intel/vulkan/gen8_pipeline.c

index 6c3668bdbf78a302fb8cf84a099acf3dbf0b2ec6..3c54ef4bafbef5dc6881e2d0e2a7ab5270937923 100644 (file)
@@ -669,7 +669,6 @@ anv_device_init_meta_blit_state(struct anv_device *device)
    const struct anv_graphics_pipeline_create_info anv_pipeline_info = {
       .color_attachment_count = -1,
       .use_repclear = false,
-      .disable_scissor = true,
       .disable_vs = true,
       .use_rectlist = true
    };
index 5c1e30c12ac500dbbe6d20ec2500d1556b0ea978..577eeaea1041e813c21720dc1b1a72ee93595986 100644 (file)
@@ -1190,7 +1190,6 @@ blit2d_init_pipeline(struct anv_device *device,
    const struct anv_graphics_pipeline_create_info anv_pipeline_info = {
       .color_attachment_count = -1,
       .use_repclear = false,
-      .disable_scissor = true,
       .disable_vs = true,
       .use_rectlist = true
    };
index 6dd3e0be7599a04aa1c192dafe05763af5933b9e..c5c7d563e91b32579d6b293abaa69ff0d8d75226 100644 (file)
@@ -211,7 +211,6 @@ create_pipeline(struct anv_device *device,
       &(struct anv_graphics_pipeline_create_info) {
          .color_attachment_count = MAX_RTS,
          .use_repclear = use_repclear,
-         .disable_scissor = true,
          .disable_vs = true,
          .use_rectlist = true
       },
index 9efe6f7d9864d0e4ea4f805ff1375a13d469cb68..f83bb6bbfd38df567cd4e5d76590590544c64070 100644 (file)
@@ -343,7 +343,6 @@ create_pipeline(struct anv_device *device,
       &(struct anv_graphics_pipeline_create_info) {
          .color_attachment_count = -1,
          .use_repclear = false,
-         .disable_scissor = true,
          .disable_vs = true,
          .use_rectlist = true
       },
index d62e5baeaa9c63efda78d8832b65886b87d21ade..ae2e08d2dfb405a36b19dfe42672ced9414281e7 100644 (file)
@@ -1488,7 +1488,6 @@ struct anv_graphics_pipeline_create_info {
    int8_t color_attachment_count;
 
    bool                                         use_repclear;
-   bool                                         disable_scissor;
    bool                                         disable_vs;
    bool                                         use_rectlist;
 };
index 5c04fb749cc491a06f4f0d8ae246717c432472b2..d6d5ce6778ffbd244dc24c7f578696e496c8dda7 100644 (file)
@@ -54,7 +54,7 @@ gen7_emit_rs_state(struct anv_pipeline *pipeline,
       .CullMode                                 = vk_to_gen_cullmode[info->cullMode],
 
       /* uint32_t                                     LineEndCapAntialiasingRegionWidth; */
-      .ScissorRectangleEnable                   =  !(extra && extra->disable_scissor),
+      .ScissorRectangleEnable                   =  !(extra && extra->use_rectlist),
 
       /* uint32_t                                     MultisampleRasterizationMode; */
       /* bool                                         LastPixelEnable; */
index 7f26ef5e1978afa2e7d532cb3d9d86ac7dfb6d09..6f6868ea5ea2a2068c5b7ab5a1f1da31d41eb6b5 100644 (file)
@@ -82,7 +82,7 @@ emit_rs_state(struct anv_pipeline *pipeline,
       .CullMode = vk_to_gen_cullmode[info->cullMode],
       .FrontFaceFillMode = vk_to_gen_fillmode[info->polygonMode],
       .BackFaceFillMode = vk_to_gen_fillmode[info->polygonMode],
-      .ScissorRectangleEnable = !(extra && extra->disable_scissor),
+      .ScissorRectangleEnable = !(extra && extra->use_rectlist),
 #if GEN_GEN == 8
       .ViewportZClipTestEnable = true,
 #else