summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_llvm.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-03-04 15:03:40 +1000
committerMarge Bot <eric+marge@anholt.net>2021-03-12 05:05:51 +0000
commitb5f686c93ba9b8b09533691c2be0e42788bb3bed (patch)
tree5e052f14188c4c20f856a9cb60027f03f783cc17 /src/gallium/auxiliary/draw/draw_llvm.h
parenta2bee6df5fd23b80dfadb21953584601935d1167 (diff)
draw: add tess/gs support for multiview index
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9399>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h
index f2d3ef83b06..9fbcbc2e5ac 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.h
+++ b/src/gallium/auxiliary/draw/draw_llvm.h
@@ -447,13 +447,15 @@ typedef int
unsigned num_prims,
unsigned instance_id,
int *prim_ids,
- unsigned invocation_id);
+ unsigned invocation_id,
+ unsigned view_id);
typedef int
(*draw_tcs_jit_func)(struct draw_tcs_jit_context *context,
float inputs[32][NUM_TCS_INPUTS][TGSI_NUM_CHANNELS],
float outputs[32][PIPE_MAX_SHADER_INPUTS][TGSI_NUM_CHANNELS],
- uint32_t prim_id, uint32_t patch_vertices_in);
+ uint32_t prim_id, uint32_t patch_vertices_in,
+ unsigned view_id);
typedef int
(*draw_tes_jit_func)(struct draw_tes_jit_context *context,
@@ -461,7 +463,8 @@ typedef int
struct vertex_header *io,
uint32_t prim_id, uint32_t num_tess_coord,
float *tess_coord_x, float *tess_coord_y, float *tess_outer,
- float *tess_inner, uint32_t patch_vertices_in);
+ float *tess_inner, uint32_t patch_vertices_in,
+ unsigned view_id);
struct draw_llvm_variant_key