diff options
author | Kenneth Graunke <[email protected]> | 2012-08-04 20:40:42 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-08-06 11:16:09 -0700 |
commit | 27bf9c1997b77f85c2099436e9ad5dfc0f1608c7 (patch) | |
tree | 059b13c479ad4f97178624ee6764bb953cdd2a73 /src/mesa/drivers/dri/i965/brw_fs.h | |
parent | 82bfb4b41af7d61aa45e41d62c1842b6a09e9585 (diff) |
i965/fs: Factor out texcoord setup into a helper function.
With the textureRect support and GL_CLAMP workarounds, it's grown
sufficiently that it deserves its own function. Separating it out
makes the original function much more readable.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 246dcf0f4e4..1d9c6863f3b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -304,6 +304,7 @@ public: fs_reg *emit_general_interpolation(ir_variable *ir); void emit_interpolation_setup_gen4(); void emit_interpolation_setup_gen6(); + fs_reg emit_texcoord(ir_texture *ir, int sampler); fs_inst *emit_texture_gen4(ir_texture *ir, fs_reg dst, fs_reg coordinate, int sampler); fs_inst *emit_texture_gen5(ir_texture *ir, fs_reg dst, fs_reg coordinate, |