aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2014-08-01 16:24:44 -0700
committerKenneth Graunke <[email protected]>2014-10-15 17:05:00 -0700
commiteaadc431920fe31b13c11b0c78e7eb2226a920a0 (patch)
treec1bfe7b8416350e5c20454efa8b8ed575300eefd /src/mesa/drivers/dri/i965/brw_fs.h
parentcbde5407c99d0bbd58d496d7ce01f5c0b5828d63 (diff)
i965/fs: Don't use ir->lod_info.grad.dPd<x,y> in emit_texture_*.
This drops a dependency on ir_texture objects. v2 (Ken): Rename lod_components to grad_components, as it only has a meaningful value for ir_txd. We could set it to 1 for TXL, but there's no real need. Signed-off-by: Connor Abbott <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 961148721c0..54410313e9f 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -472,16 +472,19 @@ public:
bool is_rect, uint32_t sampler, int texunit);
fs_inst *emit_texture_gen4(ir_texture *ir, fs_reg dst,
fs_reg coordinate, int coord_components,
- fs_reg shadow_comp, fs_reg lod, fs_reg lod2,
+ fs_reg shadow_comp,
+ fs_reg lod, fs_reg lod2, int grad_components,
uint32_t sampler);
fs_inst *emit_texture_gen5(ir_texture *ir, fs_reg dst,
fs_reg coordinate, int coord_components,
- fs_reg shadow_comp, fs_reg lod, fs_reg lod2,
+ fs_reg shadow_comp,
+ fs_reg lod, fs_reg lod2, int grad_components,
fs_reg sample_index, uint32_t sampler,
bool has_offset);
fs_inst *emit_texture_gen7(ir_texture *ir, fs_reg dst,
fs_reg coordinate, int coord_components,
- fs_reg shadow_comp, fs_reg lod, fs_reg lod2,
+ fs_reg shadow_comp,
+ fs_reg lod, fs_reg lod2, int grad_components,
fs_reg sample_index, fs_reg mcs, fs_reg sampler,
fs_reg offset_value);
fs_reg emit_mcs_fetch(fs_reg coordinate, int components, fs_reg sampler);