freedreno/a6xx: Turn on robustness extensions
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 3 Jun 2020 19:28:05 +0000 (12:28 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 4 Jun 2020 00:56:20 +0000 (00:56 +0000)
With UBO access going through LDC, all memory access uses buffer based
io primitives.  We can then advertise
PIPE_CAP_ROBUST_BUFFER_ACCESS_BEHAVIOR and
PIPE_CAP_DEVICE_RESET_STATUS_QUERY, which turn on GL_EXT_robustness,
GL_KHR_robust_buffer_access_behavior and GL_KHR_robustness.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5319>

src/gallium/drivers/freedreno/freedreno_screen.c

index 97a7eca5cc3508b3dd43ea0e09064d3f4c31b33d..27ad3697798be2dfa0370e9fe80290aee31ad505 100644 (file)
@@ -888,10 +888,8 @@ fd_screen_create(struct fd_device *dev, struct renderonly *ro)
                screen->priority_mask = (1 << val) - 1;
        }
 
-       if ((fd_device_version(dev) >= FD_VERSION_ROBUSTNESS) &&
-                       (fd_pipe_get_param(screen->pipe, FD_PP_PGTABLE, &val) == 0)) {
-               screen->has_robustness = val;
-       }
+       if (fd_device_version(dev) >= FD_VERSION_ROBUSTNESS)
+               screen->has_robustness = true;
 
        struct sysinfo si;
        sysinfo(&si);