Commit 9d93d2a4 authored by Connor Abbott's avatar Connor Abbott

ac/nir: Remove stale TODO

While we're here, copy the comment explaining this from radeonsi.
Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <>
parent 1d55b0da
......@@ -3895,7 +3895,13 @@ static void visit_tex(struct ac_nir_context *ctx, nir_tex_instr *instr)
args.offset = NULL;
/* TODO TG4 support */
/* DMASK was repurposed for GATHER4. 4 components are always
* returned and DMASK works like a swizzle - it selects
* the component to fetch. The only valid DMASK values are
* 1=red, 2=green, 4=blue, 8=alpha. (e.g. 1 returns
* (red,red,red,red) etc.) The ISA document doesn't mention
* this.
args.dmask = 0xf;
if (instr->op == nir_texop_tg4) {
if (instr->is_shadow)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment