mesa: fix GL_PROGRAM_BINARY_RETRIEVABLE_HINT handling
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 9 May 2019 07:52:40 +0000 (09:52 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 9 May 2019 20:15:20 +0000 (16:15 -0400)
commit62ed82ea1a93e4fb9676a1edd9447b26cdd4f173
treeb7848bd04b835a09f114ea734154a0f1dd65c234
parent1f1007a4edcefa1c291c1b4e13d6cec35a59ca6f
mesa: fix GL_PROGRAM_BINARY_RETRIEVABLE_HINT handling

When first implemented in fefd03e16c16 Mesa's behavior was aligned on behavior
of Nvidia's driver. This caused a failing test in piglit but was ok since the
specification is unclear on this subject.

Nvidia's driver behavior has been modified because using version 410.104, the
problematic test (program_binary_retrievable_hint) now passes.

This commit defers BinaryRetrievableHint update until the next linking so the
test passes on Mesa as well.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c