gallium: Mute arrays for several meta like callbacks.
authorMathias Fröhlich <Mathias.Froehlich@gmx.net>
Mon, 5 Feb 2018 21:02:51 +0000 (22:02 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Fri, 9 Feb 2018 03:26:13 +0000 (04:26 +0100)
commit437cae411e7664e01d9c1c280317274b3ffc0734
treef986d3d16af2058ab01453c39c7722d29547c21a
parent2f9eb0aad5a0d2177b52a22d012fd53438edf9fe
gallium: Mute arrays for several meta like callbacks.

Set the _DrawArray pointer to NULL when calling into the Drivers
Bitmap/CopyPixels/DrawAtlasBitmaps/DrawPixels/DrawTex hooks.
This fixes an assert that gets uncovered when the following
patch gets applied.

v2: Mute from within the state tracker instead of generic mesa.
v3: Avoid evaluating _DrawArrays from within st_validate_state.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom.c
src/mesa/state_tracker/st_atom.h
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_drawtex.c