Skip to content

etnaviv: handle NULL views in set_sampler_views

Christian Gmeiner requested to merge austriancoder/mesa:fix-hud into master

Passing NULL for the views parameter should be the same as passing an array of NULL, according to the documentation. So let's respect that detail.

This fixes a crash when using GALLIUM_HUD. The wrong handling of views parameter was causing problems starting with 2813688f ("gallium/hud: don't use cso_context to restore VBs, constbuf 0 and sampler views").

Fixes: c9e8b49b ("etnaviv: gallium driver for Vivante GPUs") Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com

Edited by Christian Gmeiner

Merge request reports