mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965/fs: Make emit_mcs_fetch() not use ir_texture.
Our new IR won't have ir_texture objects. Signed-off-by: Connor Abbott <connor.abbott@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
parent
465373535e
commit
e599837fed
2 changed files with 4 additions and 4 deletions
|
|
@ -481,7 +481,7 @@ public:
|
|||
fs_reg shadow_comp, fs_reg lod, fs_reg lod2,
|
||||
fs_reg sample_index, fs_reg mcs, fs_reg sampler,
|
||||
fs_reg offset_value);
|
||||
fs_reg emit_mcs_fetch(ir_texture *ir, fs_reg coordinate, fs_reg sampler);
|
||||
fs_reg emit_mcs_fetch(fs_reg coordinate, int components, fs_reg sampler);
|
||||
void emit_gen6_gather_wa(uint8_t wa, fs_reg dst);
|
||||
fs_reg fix_math_operand(fs_reg src);
|
||||
fs_inst *emit_math(enum opcode op, fs_reg dst, fs_reg src0);
|
||||
|
|
|
|||
|
|
@ -1808,10 +1808,9 @@ fs_visitor::rescale_texcoord(ir_texture *ir, fs_reg coordinate,
|
|||
|
||||
/* Sample from the MCS surface attached to this multisample texture. */
|
||||
fs_reg
|
||||
fs_visitor::emit_mcs_fetch(ir_texture *ir, fs_reg coordinate, fs_reg sampler)
|
||||
fs_visitor::emit_mcs_fetch(fs_reg coordinate, int components, fs_reg sampler)
|
||||
{
|
||||
int reg_width = dispatch_width / 8;
|
||||
int components = ir->coordinate->type->vector_elements;
|
||||
fs_reg payload = fs_reg(GRF, virtual_grf_alloc(components * reg_width),
|
||||
BRW_REGISTER_TYPE_F);
|
||||
fs_reg dest = fs_reg(this, glsl_type::uvec4_type);
|
||||
|
|
@ -1982,7 +1981,8 @@ fs_visitor::visit(ir_texture *ir)
|
|||
sample_index = this->result;
|
||||
|
||||
if (brw->gen >= 7 && tex->compressed_multisample_layout_mask & (1<<sampler))
|
||||
mcs = emit_mcs_fetch(ir, coordinate, sampler_reg);
|
||||
mcs = emit_mcs_fetch(coordinate, ir->coordinate->type->vector_elements,
|
||||
sampler_reg);
|
||||
else
|
||||
mcs = fs_reg(0u);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue