summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-02-26 11:24:13 -0500
committerRob Clark <[email protected]>2018-03-05 08:05:33 -0500
commit9630f4df3bc4ae150140420b1be93e4c28e3ad1b (patch)
treef2bb7ac5cdcd0e558d10605b537e81337fac84e2
parent54988f1e6bded6497b5bf9b9e0bca0912e992c40 (diff)
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 <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c7
1 files 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: