aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2020-06-03 12:28:05 -0700
committerMarge Bot <[email protected]>2020-06-04 00:56:20 +0000
commit5fb7cad95c227348d2207ab814d9a819c5f205b0 (patch)
tree4eef7cf5bf1ef23da276462e2ebb58963132ba8c /src/gallium/drivers/freedreno
parent8b353524b04fa9cd77e21e2d036c69f1cff30c35 (diff)
freedreno/a6xx: Turn on robustness extensions
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 <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5319>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 97a7eca5cc3..27ad3697798 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -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);