[Mesa-dev] [PATCH 1/5] anv/pipeline: do not discard 'const' modifier
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu Nov 24 13:10:12 UTC 2016
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 24/11/16 12:36, Juan A. Suarez Romero wrote:
> Fixes warning.
> ---
> src/intel/vulkan/genX_pipeline.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
> index cb164ad..ada7985 100644
> --- a/src/intel/vulkan/genX_pipeline.c
> +++ b/src/intel/vulkan/genX_pipeline.c
> @@ -1138,7 +1138,7 @@ 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-dev
mailing list