mesa: don't report 1 for GL_VALIDATE_STATUS if user didn't validate pipeline
authorMarek Olšák <marek.olsak@amd.com>
Sun, 31 Jan 2021 04:22:10 +0000 (23:22 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Feb 2021 19:29:09 +0000 (19:29 +0000)
commitd45043d3b859b73f56c2379f3bba3bda29e8108d
tree2b9d6976d5b46af1775c4ec90912aca62391b5a0
parentb6e84f56f71d2877f909f1814f57fbe743a6f58a
mesa: don't report 1 for GL_VALIDATE_STATUS if user didn't validate pipeline

dEQP expects GL_VALIDATE_STATUS to be set to 0 if the user didn't call
glValidateProgramPipeline even if the pipeline is valid, but we will
validate pipeline objects in state changes, not draw calls.

This will fix a failure in this test caused by the next commit:
dEQP-GLES31.functional.state_query.program_pipeline.validate_status_get_program_pipelineiv

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8798>
src/mesa/main/mtypes.h
src/mesa/main/pipelineobj.c
src/mesa/main/uniform_query.cpp