summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-11-25 22:26:50 -0800
committerJason Ekstrand <[email protected]>2016-11-26 11:55:09 -0800
commite41f7c3063c71840f75891c501aa2a0e0a23f352 (patch)
tree172bb08830b86db0c3b16685084a9a163640dc5e
parent8fdb800bdaa28f4ca563829f70e8b187f867c0ac (diff)
anv/pipeline: Make the temp blend attachment state pointer const
This fixes a "discards const" warning since blend is const. Reviewed-by: Ilia Mirkin <[email protected]>
-rw-r--r--src/intel/vulkan/genX_pipeline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index cb164addfbd..86dd6475512 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -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) ||