mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
freedreno/ir3: ignore clip-vertex varying
Since we emulate clip-planes, the clip-vertex is used within the VS itself (thanks to nir_lower_clip). So just ignore it as a VS output. Fixes a boatload of piglit tests that were asserting on unknown varying slot. (Also unrelated spelling/typo fix.) Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
f20cf22b54
commit
f15447e7c9
1 changed files with 4 additions and 1 deletions
|
|
@ -1405,7 +1405,7 @@ emit_tex(struct ir3_compile *ctx, nir_tex_instr *tex)
|
|||
ddy = get_src(ctx, &tex->src[i].src);
|
||||
break;
|
||||
default:
|
||||
compile_error(ctx, "Unhandled NIR tex serc type: %d\n",
|
||||
compile_error(ctx, "Unhandled NIR tex src type: %d\n",
|
||||
tex->src[i].src_type);
|
||||
return;
|
||||
}
|
||||
|
|
@ -2081,6 +2081,9 @@ setup_output(struct ir3_compile *ctx, nir_variable *out)
|
|||
case VARYING_SLOT_CLIP_DIST0:
|
||||
case VARYING_SLOT_CLIP_DIST1:
|
||||
break;
|
||||
case VARYING_SLOT_CLIP_VERTEX:
|
||||
/* handled entirely in nir_lower_clip: */
|
||||
return;
|
||||
default:
|
||||
if (slot >= VARYING_SLOT_VAR0)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue