r600: reduce num compute threads to 1024.
authorDave Airlie <airlied@redhat.com>
Wed, 25 Jul 2018 03:14:58 +0000 (13:14 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jul 2018 18:55:38 +0000 (04:55 +1000)
I copied this value from radeonsi, but it was wrong, 1024
seems to be correct answer from looking at gpuinfo.

This should fix a few compute shader related hangs. (at least in CTS)

Cc: <mesa-stable@lists.freedesktop.org>
(airlied: pushed because it avoids hangs)

src/gallium/drivers/r600/r600_pipe_common.c

index a8ea9c44854b401004719a18e247cdce6bbcb19b..f7cfd0d46a6a8941dd5e8406ea6e6efe3714cfce 100644 (file)
@@ -998,7 +998,7 @@ static unsigned get_max_threads_per_block(struct r600_common_screen *screen,
        if (ir_type != PIPE_SHADER_IR_TGSI)
                return 256;
        if (screen->chip_class >= EVERGREEN)
-               return 2048;
+               return 1024;
        return 256;
 }