vk/pipeline: Add support for disabling the scissor in "extra"

This commit is contained in:
Jason Ekstrand 2015-05-12 12:52:53 -07:00
parent d77c34d1d2
commit 4336a1bc00
2 changed files with 2 additions and 1 deletions

View 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,

View 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;
};