summaryrefslogtreecommitdiffstats
path: root/src/intel/Android.mk
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2020-01-03 13:23:32 -0800
committerCaio Marcelo de Oliveira Filho <[email protected]>2020-01-03 13:57:31 -0800
commit75a19186b2aad7e588f04e1c554cdfd315dd848a (patch)
treed09a17ce12968ecdbc37a7d03b9fdbeb6076f1d1 /src/intel/Android.mk
parent6755b6315b209002f27671febdf2e196a66e3df4 (diff)
anv: Ignore some CreateInfo structs when rasterization is disabled
According to the description of VkGraphicsPipelineCreateInfo(), pViewportState, pMultisampleState, pDepthStencilState and pColorBlendState must be ignored when rasterization is not enabled. This avoids potentially invalid pointers being dereferenced when rasterization is disabled. Tested with `demos_x64 VK_Parameter_Zoo` from Renderdoc repository. v2: Don't store the `raster_enabled` as part of anv_pipeline, just query it from the create info. This avoids storing a state that's only used during pipeline creation. (Jason) Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2258 Cc: <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> [v1] Reviewed-by: Lionel Landwerlin <[email protected]> [v1] Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/Android.mk')
0 files changed, 0 insertions, 0 deletions