Mesa (master): anv/pipeline: Make the temp blend attachment state pointer const
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Sat Nov 26 19:59:09 UTC 2016
Module: Mesa
Branch: master
Commit: e41f7c3063c71840f75891c501aa2a0e0a23f352
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e41f7c3063c71840f75891c501aa2a0e0a23f352
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Nov 25 22:26:50 2016 -0800
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 at alum.mit.edu>
---
src/intel/vulkan/genX_pipeline.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index cb164ad..86dd647 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) ||
More information about the mesa-commit
mailing list