OSDN Git Service

mesa: return initial value for VALIDATE_STATUS if pipe not bound
authorTapani Pälli <tapani.palli@intel.com>
Tue, 1 Sep 2015 10:53:44 +0000 (13:53 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 17 Sep 2015 05:26:33 +0000 (08:26 +0300)
commitba02f7a3b6a0e4314753a8e5080db61241563f9c
treea0fc3def4853c68650a591f23e398a4b281bd3cd
parentd9689be5c67e71518ef8687fd7fc4bc6df25b93f
mesa: return initial value for VALIDATE_STATUS if pipe not bound

From OpenGL 4.5 Core spec (7.13):

    "If pipeline is a name that has been generated (without subsequent
    deletion) by GenProgramPipelines, but refers to a program pipeline
    object that has not been previously bound, the GL first creates a
    new state vector in the same manner as when BindProgramPipeline
    creates a new program pipeline object."

I interpret this as "If GetProgramPipelineiv gets called without a
bound (but valid) pipeline object, the state should reflect initial
state of a new pipeline object." This is also expected behaviour by
ES31-CTS.sepshaderobjs.PipelineApi conformance test.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
src/mesa/main/pipelineobj.c