mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
anv/pipeline: Make the temp blend attachment state pointer const
This fixes a "discards const" warning since blend is const. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
8fdb800bda
commit
e41f7c3063
1 changed files with 3 additions and 1 deletions
|
|
@ -1138,7 +1138,9 @@ emit_3dstate_ps(struct anv_pipeline *pipeline,
|
|||
bool dual_src_blend = false;
|
||||
if (wm_prog_data->dual_src_blend) {
|
||||
for (uint32_t i = 0; i < blend->attachmentCount; i++) {
|
||||
VkPipelineColorBlendAttachmentState *bstate = &blend->pAttachments[i];
|
||||
const VkPipelineColorBlendAttachmentState *bstate =
|
||||
&blend->pAttachments[i];
|
||||
|
||||
if (bstate->blendEnable &&
|
||||
(is_dual_src_blend_factor(bstate->srcColorBlendFactor) ||
|
||||
is_dual_src_blend_factor(bstate->dstColorBlendFactor) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue