From 9630f4df3bc4ae150140420b1be93e4c28e3ad1b Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 26 Feb 2018 11:24:13 -0500 Subject: [PATCH] freedreno/a5xx: don't expose 64b pointers yet 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 --- src/gallium/drivers/freedreno/freedreno_screen.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index aa2a510afa0..7fc3ab5e9ad 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -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: -- 2.30.2