diff options
author | Paul Berry <[email protected]> | 2014-01-22 11:45:39 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2014-01-23 13:40:55 -0800 |
commit | 9cee3ff562f3e4b51bfd30338fd1ba7716ac5737 (patch) | |
tree | 4cdb18527abf58071fe5b17053eb35a63bdc45e1 /src/mesa/drivers/dri/radeon/radeon_common.c | |
parent | 00c672086c31f94dd96609fa976300781f53792e (diff) |
i965: Remove *_generator::shader field; use prog field instead.
The "shader" field in fs_generator, vec4_generator, and gen8_generator
was only used for one purpose; to figure out if we were compiling an
assembly program or a GLSL shader (shader is NULL for assembly
programs). And it wasn't being used properly: in vec4 shaders we were
always initializing it based on
prog->_LinkedShaders[MESA_SHADER_FRAGMENT], regardless of whether we
were compiling a geometry shader or a vertex shader.
This patch simplifies things by using the "prog" field instead; this
is also NULL for assembly programs.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_common.c')
0 files changed, 0 insertions, 0 deletions