diff options
author | Rob Clark <robdclark@gmail.com> | 2018-06-16 12:26:50 -0400 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-06-21 08:12:33 -0700 |
commit | 564c882021289a240de9cd1c431825c8015219f7 (patch) | |
tree | 4729f8e0c699cf1a0381a46eebbdceaac631e94a | |
parent | decb031bd8590813b1e88a9dbd2c30ccba5bb998 (diff) |
freedreno/ir3: fix base_vertex
Fixes: c366f422f0a nir: Offset vertex_id by first_vertex instead of base_vertex
Signed-off-by: Rob Clark <robdclark@gmail.com>
(cherry picked from commit e1e40935b4adb60e47e90e6d83589c369a26b6e2)
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 356d1bc44e..858f5cea45 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -2182,6 +2182,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr) ctx->ir->outputs[n] = src[i]; } break; + case nir_intrinsic_load_base_vertex: case nir_intrinsic_load_first_vertex: if (!ctx->basevertex) { ctx->basevertex = create_driver_param(ctx, IR3_DP_VTXID_BASE); |