mesa: Generate more errors from GetSamplerParameter
authorAdam Jackson <ajax@redhat.com>
Thu, 14 Nov 2019 18:09:32 +0000 (13:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Sep 2020 17:45:08 +0000 (17:45 +0000)
commitcdc025c9ef67bddf733fccb5b3e78d8d7c8b4880
tree091da4d1ba774c8177ac67c6c3d37a686d73ebb0
parent06c6920a5b1046305408089561c4e5f7b90511d5
mesa: Generate more errors from GetSamplerParameter

Not all of the corresponding extensions are enabled unconditionally, and
we should throw INVALID_ENUM in those cases.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6653>
src/mesa/main/samplerobj.c