OSDN Git Service

st/mesa/i965: create link status enum
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 3 Feb 2017 23:46:53 +0000 (10:46 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 9 Feb 2017 01:22:56 +0000 (12:22 +1100)
commita3fd8bb8c58e35ef06928fe0c565480b0e8f6343
treec69b33074384b952b1b2f3daad7bb307e9e29f67
parentac5845453c655a08ecabe3a891a3d2d9fea39866
st/mesa/i965: create link status enum

For the on-disk shader cache we want to be able to differentiate
between a program that was linked and one that was loaded from cache.

V2:
 - don't return the new enum directly to the application when queried,
   instead return GL_TRUE or GL_FALSE as required. Fixes google-chrome
   corruptions when using cache.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
13 files changed:
src/compiler/glsl/linker.cpp
src/compiler/glsl/standalone.cpp
src/mesa/drivers/dri/i965/brw_cs.c
src/mesa/drivers/dri/i965/brw_tcs.c
src/mesa/drivers/dri/i965/brw_tes.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/main/mtypes.h
src/mesa/main/program_resource.c
src/mesa/main/shaderapi.c
src/mesa/main/uniforms.c
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp