etnaviv: Allow clearing constant buffer using buffer==NULL user_buffer==NULL
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 28 Oct 2017 13:57:14 +0000 (15:57 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 2 Nov 2017 10:03:30 +0000 (11:03 +0100)
commit0ba4320d94f23da45525699c1a3a947f2c598c3e
tree360658b0b98b9a7457273396a22ecff51b2703d5
parentbc71c318426b2939aae839a356f1ab4aef1e5ada
etnaviv: Allow clearing constant buffer using buffer==NULL user_buffer==NULL

Prevents an assertion when using GALLIUM_HUD with ioquake3,
when cso_restore_constant_buffer_slot0 restores an empty
constant buffer in slot 0.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_state.c