diff options
author | George Kyriazis <[email protected]> | 2018-01-19 15:47:06 -0600 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-01-19 16:52:40 -0600 |
commit | 0cd9ad98a3364f9be04964069ec602bb0ba3119d (patch) | |
tree | a9f7664c9c8f1b420792f524c641140ad9b3a3b4 /src/gallium/drivers/swr/rasterizer/codegen | |
parent | 3140e714d290aa29ccdd39b74a7a9658f1dfe05b (diff) |
swr/rast: AVX-512 changes to enable 16-wide VS
Add a new define (USE_SIMD16_VS), to denote calling a 16-wide vertex shader.
This is needed because the mesa driver can do 16-wide shaders, but rasty
cannot yet, so we need to distinguish.
Create a new VertexID entry (VertexID16) for the USE_SIMD16_VS case, since
we need to format the vertex id in a way that is digestible by the 16-wide VS
Disabled for now. To be enabled in a future checkin when driver work
is complete.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/codegen')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_types.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_types.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_types.py index 398cde3ed92..a127976fd2d 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_types.py +++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_types.py @@ -60,6 +60,10 @@ def gen_llvm_type(type, name, idx, is_pointer, is_pointer_pointer, is_array, is_ llvm_type = 'VectorType::get(Type::getFloatTy(ctx), pJitMgr->mVWidth)' elif type == 'simdscalari': llvm_type = 'VectorType::get(Type::getInt32Ty(ctx), pJitMgr->mVWidth)' + elif type == 'simd16scalar': + llvm_type = 'VectorType::get(Type::getFloatTy(ctx), 16)' + elif type == 'simd16scalari': + llvm_type = 'VectorType::get(Type::getInt32Ty(ctx), 16)' elif type == '__m128i': llvm_type = 'VectorType::get(Type::getInt32Ty(ctx), 4)' elif type == 'SIMD256::Float': |