radeonsi: use a trick to extract and pack edgeflags using fewer instructions

This removes 4 instructions from the prim export packing.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12343>
This commit is contained in:
Marek Olšák
2021-08-31 21:45:21 -04:00
committed by Marge Bot
parent 2d8dfb9111
commit b330c7cb2a
4 changed files with 15 additions and 29 deletions

View File

@@ -581,7 +581,7 @@ struct ac_ngg_prim {
unsigned num_vertices;
LLVMValueRef isnull;
LLVMValueRef index[3];
LLVMValueRef edgeflag[3];
LLVMValueRef edgeflags;
LLVMValueRef passthrough;
};