mesa: replace GLenum target with gl_shader_stage in NewProgram
authorMarek Olšák <marek.olsak@amd.com>
Tue, 31 Mar 2020 14:03:55 +0000 (10:03 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 12:49:53 +0000 (12:49 +0000)
commitad5da3e63ee368e3fa420d4785c698273614683b
tree2d8f5e0e32c9671cd7c1f851b0ea0eb307ef62c8
parent531728d6cbf0eb7d87698b9f03d0083ca0e2a7c0
mesa: replace GLenum target with gl_shader_stage in NewProgram

So that the GLSL compiler doesn't have to use the GLenum conversion
functions.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4756>
14 files changed:
src/compiler/glsl/linker.cpp
src/compiler/glsl/serialize.cpp
src/compiler/glsl/standalone.cpp
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/main/arbprogram.c
src/mesa/main/dd.h
src/mesa/main/ffvertex_prog.c
src/mesa/main/glspirv.c
src/mesa/main/shared.c
src/mesa/program/program.c
src/mesa/program/program.h
src/mesa/state_tracker/st_cb_program.c