diff options
author | Brian Paul <[email protected]> | 2009-08-25 17:42:47 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-25 17:46:10 -0600 |
commit | c90fca3da41785dc19948637aeaec8b61e535b1a (patch) | |
tree | 718e6deef113e5a8d001d5ea83995e9bf4064f1b /src/mesa/shader/shader_api.h | |
parent | 2050baba9692600da7038dd18cbfee794caf4bf4 (diff) |
glsl: implement shader sampler validation
Shader validation should fail if there are two samplers of different types
which reference the same texture unit. For example, if a cubemap sampler
and a 2D sampler both reference texture unit 0, that's invalid.
Diffstat (limited to 'src/mesa/shader/shader_api.h')
-rw-r--r-- | src/mesa/shader/shader_api.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/shader/shader_api.h b/src/mesa/shader/shader_api.h index ec1996ee98d..d08d47373e1 100644 --- a/src/mesa/shader/shader_api.h +++ b/src/mesa/shader/shader_api.h @@ -1,8 +1,9 @@ /* * Mesa 3-D graphics library - * Version: 6.5 + * Version: 7.6 * * Copyright (C) 2004-2006 Brian Paul All Rights Reserved. + * Copyright (C) 2009 VMware, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -87,6 +88,11 @@ extern void _mesa_use_program(GLcontext *ctx, GLuint program); +extern GLboolean +_mesa_validate_shader_program(GLcontext *ctx, + const struct gl_shader_program *shProg, + char *errMsg); + extern void _mesa_init_glsl_driver_functions(struct dd_function_table *driver); |