diff options
author | Kenneth Graunke <[email protected]> | 2012-10-14 16:43:15 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-10-16 11:35:24 -0700 |
commit | 8d418d16165624a59b2049d4097b4ab0dc82ffa9 (patch) | |
tree | 25cb5e695d63066b16eaf08cb0d7810f55534e94 /src/mesa/drivers/dri/i965/brw_fs_fp.cpp | |
parent | d67e52b0271a0abf44a68cfd5968f75334f6a06d (diff) |
mesa: Remove support for named parameters.
These were only part of NV_fragment_program, so we can kill them.
The fact that PROGRAM_NAMED_PARAM appears in r200_vertprog.c is rather
comedic, but also demonstrates that people just spam the various types
of parameters everywhere because they're confusing.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_fp.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp index be00f6ea8f5..080435b5114 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp @@ -599,7 +599,7 @@ fs_visitor::setup_fp_regs() for (int i = 0; i < num_temp; i++) fp_temp_regs[i] = fs_reg(this, glsl_type::vec4_type); - /* PROGRAM_STATE_VAR, PROGRAM_NAMED_PARAM, etc. */ + /* PROGRAM_STATE_VAR etc. */ if (c->dispatch_width == 8) { for (unsigned p = 0; p < c->fp->program.Base.Parameters->NumParameters; p++) { @@ -722,13 +722,11 @@ fs_visitor::get_fp_src_reg(const prog_src_register *src) case PROGRAM_STATE_VAR: case PROGRAM_UNIFORM: case PROGRAM_CONSTANT: - case PROGRAM_NAMED_PARAM: /* We actually want to look at the type in the Parameters list for this, * because this lets us upload constant builtin uniforms, as actual * constants. */ switch (plist->Parameters[src->Index].Type) { - case PROGRAM_NAMED_PARAM: case PROGRAM_CONSTANT: { result = fs_reg(this, glsl_type::vec4_type); |