[Mesa-dev] [PATCH 3/4] anv/pipeline: Make the temp blend attachment state pointer const

Ilia Mirkin imirkin at alum.mit.edu
Sat Nov 26 14:22:54 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Nov 26, 2016 1:31 AM, "Jason Ekstrand" <jason at jlekstrand.net> wrote:

> This fixes a "discards const" warning since blend is const.
> ---
>  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) ||
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161126/0b515312/attachment.html>


More information about the mesa-dev mailing list