freedreno/a5xx: don't expose 64b pointers yet
authorRob Clark <robdclark@gmail.com>
Mon, 26 Feb 2018 16:24:13 +0000 (11:24 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 5 Mar 2018 13:05:33 +0000 (08:05 -0500)
Temporary hack, but since we can't do 64b math yet in ir3, pretend that
we don't support 64b pointers.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c

index aa2a510afa0dfe7cee8396c4c2fc7799a0f88544..7fc3ab5e9ad4a2fa5625aa3ba1108c6d9599a267 100644 (file)
@@ -641,8 +641,11 @@ fd_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_type,
 
        switch (param) {
        case PIPE_COMPUTE_CAP_ADDRESS_BITS:
-               if (is_a5xx(screen))
-                       RET((uint32_t []){ 64 });
+// don't expose 64b pointer support yet, until ir3 supports 64b
+// math, otherwise spir64 target is used and we get 64b pointer
+// calculations that we can't do yet
+//             if (is_a5xx(screen))
+//                     RET((uint32_t []){ 64 });
                RET((uint32_t []){ 32 });
 
        case PIPE_COMPUTE_CAP_IR_TARGET: