diff options
| author | Dave Airlie <airlied@redhat.com> | 2021-05-26 15:53:46 +1000 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2021-07-05 14:07:39 +1000 |
| commit | f19f3f5496de7e65a937ccf88812d303d0054a8f (patch) | |
| tree | 30ec9d1ca8d8d4ff0618454c460ddbed81d9a01d /src/gallium/auxiliary/draw/draw_llvm.h | |
| parent | 45d9e8bb99ffb6ec5babec063e4665c323d56073 (diff) | |
draw/tess: write correct primitive id into vertices
The code was using a prim assembler after the tess stage, however
tess prims aren't necessarily the output prim types, so just put
the prim ids into the vertices at tess stage, and skip prim assembly.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11000>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.h')
| -rw-r--r-- | src/gallium/auxiliary/draw/draw_llvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h index 9fbcbc2e5ac..bafb71ed8a6 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.h +++ b/src/gallium/auxiliary/draw/draw_llvm.h @@ -522,6 +522,8 @@ struct draw_tes_llvm_variant_key unsigned nr_samplers:8; unsigned nr_sampler_views:8; unsigned nr_images:8; + unsigned primid_output:7; + unsigned primid_needed:1; struct draw_sampler_static_state samplers[1]; /* Followed by variable number of images.*/ }; |