aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/r200_vertprog.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-31 10:03:55 -0400
committerMarge Bot <[email protected]>2020-04-27 12:49:53 +0000
commitad5da3e63ee368e3fa420d4785c698273614683b (patch)
tree2d8f5e0e32c9671cd7c1f851b0ea0eb307ef62c8 /src/mesa/drivers/dri/r200/r200_vertprog.c
parent531728d6cbf0eb7d87698b9f03d0083ca0e2a7c0 (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4756>
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_vertprog.c')
-rw-r--r--src/mesa/drivers/dri/r200/r200_vertprog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_vertprog.c b/src/mesa/drivers/dri/r200/r200_vertprog.c
index 7076ec0c7f3..0c51b191dfc 100644
--- a/src/mesa/drivers/dri/r200/r200_vertprog.c
+++ b/src/mesa/drivers/dri/r200/r200_vertprog.c
@@ -1183,18 +1183,18 @@ void r200SetupVertexProg( struct gl_context *ctx ) {
static struct gl_program *
-r200NewProgram(struct gl_context *ctx, GLenum target, GLuint id,
+r200NewProgram(struct gl_context *ctx, gl_shader_stage stage, GLuint id,
bool is_arb_asm)
{
- switch(target){
- case GL_VERTEX_PROGRAM_ARB: {
+ switch(stage){
+ case MESA_SHADER_VERTEX: {
struct r200_vertex_program *vp = rzalloc(NULL,
struct r200_vertex_program);
- return _mesa_init_gl_program(&vp->mesa_program, target, id, is_arb_asm);
+ return _mesa_init_gl_program(&vp->mesa_program, stage, id, is_arb_asm);
}
- case GL_FRAGMENT_PROGRAM_ARB: {
+ case MESA_SHADER_FRAGMENT: {
struct gl_program *prog = rzalloc(NULL, struct gl_program);
- return _mesa_init_gl_program(prog, target, id, is_arb_asm);
+ return _mesa_init_gl_program(prog, stage, id, is_arb_asm);
}
default:
_mesa_problem(ctx, "Bad target in r200NewProgram");