mesa: rework _mesa_lookup_vao_err to allow usage from EXT_dsa
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 25 Oct 2019 13:20:09 +0000 (15:20 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 5 Nov 2019 12:58:28 +0000 (13:58 +0100)
commit3e842a0b0ea93a8ec754cbf656c44310f47f72e0
tree7a42ad42a22cb19fadfa255629c9d5cba16c5aaa
parenta26bb93943c8071c75615d1d4ebc4e66ee56c0c3
mesa: rework _mesa_lookup_vao_err to allow usage from EXT_dsa

ARB_dsa and EXT_dsa slightly differs when an uninitialized VAO
is requested.
In this case ARB_dsa fails while EXT_dsa requires to initialize
the object.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/arrayobj.c
src/mesa/main/arrayobj.h
src/mesa/main/varray.c