[Mesa-dev] [PATCH] fp64: disable varying packing for doubles.

Dave Airlie airlied at gmail.com
Thu Feb 19 18:43:58 PST 2015


From: Dave Airlie <airlied at redhat.com>

I'm not sure we really care about this, but we need to
write better support if we do. For now just disable it.

piglit test: tests/spec/arb_gpu_shader_fp64/execution/vs-out-fs-in-double-2.shader_test

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/glsl/lower_packed_varyings.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp
index 5e844c7..3c9cbec 100644
--- a/src/glsl/lower_packed_varyings.cpp
+++ b/src/glsl/lower_packed_varyings.cpp
@@ -592,6 +592,9 @@ lower_packed_varyings_visitor::needs_lowering(ir_variable *var)
       return false;
 
    const glsl_type *type = var->type;
+   /* don't attempt to pack double varyings yet */
+   if (type->base_type == GLSL_TYPE_DOUBLE)
+      return false;
    if (this->gs_input_vertices != 0) {
       assert(type->is_array());
       type = type->element_type();
-- 
1.9.3



More information about the mesa-dev mailing list