anv: Replace ::disable_scissor with ::use_rectlists
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>
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
@@ -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
|
||||
};
|
||||
|
@@ -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
|
||||
},
|
||||
|
@@ -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
|
||||
},
|
||||
|
@@ -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;
|
||||
};
|
||||
|
@@ -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; */
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user