[Mesa-dev] [PATCH 4/9] anv/gen8_pipeline: Use Alternate floating point mode when use_alt_mode is set in prog_data
Anuj Phogat
anuj.phogat at gmail.com
Fri Sep 30 22:33:12 UTC 2016
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/intel/vulkan/gen8_pipeline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c
index 1abb97c..7a9a3cf 100644
--- a/src/intel/vulkan/gen8_pipeline.c
+++ b/src/intel/vulkan/gen8_pipeline.c
@@ -197,7 +197,8 @@ genX(graphics_pipeline_create)(
vs_prog_data->base.base.binding_table.size_bytes / 4;
vs.ThreadDispatchPriority = false;
- vs.FloatingPointMode = IEEE754;
+ vs.FloatingPointMode = vs_prog_data->base.base.use_alt_mode ?
+ Alternate : IEEE754;
vs.IllegalOpcodeExceptionEnable = false;
vs.AccessesUAV = false;
vs.SoftwareExceptionEnable = false;
--
2.5.5
More information about the mesa-dev
mailing list