Mesa (main): draw: fix tessellation output vertex size calculation
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 5 04:46:12 UTC 2021
Module: Mesa
Branch: main
Commit: 45d9e8bb99ffb6ec5babec063e4665c323d56073
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=45d9e8bb99ffb6ec5babec063e4665c323d56073
Author: Dave Airlie <airlied at redhat.com>
Date: Wed May 26 14:27:14 2021 +1000
draw: fix tessellation output vertex size calculation
This ensures space for the extra outputs is calculated in the
tes vertex outputs.
dEQP-VK.pipeline.misc.primitive_id_from_tess
Fixes: dacf8f5f5c82 ("draw: hook up final bits of tessellation")
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11000>
---
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
index 9c0207aab5a..421af232e48 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
@@ -265,7 +265,7 @@ llvm_middle_end_prepare_tes(struct llvm_middle_end *fpme)
}
}
- variant = draw_tes_llvm_create_variant(llvm, tes->info.num_outputs, key);
+ variant = draw_tes_llvm_create_variant(llvm, draw_total_tes_outputs(draw), key);
if (variant) {
insert_at_head(&shader->variants, &variant->list_item_local);
More information about the mesa-commit
mailing list