From: Kristian H. Kristensen Date: Wed, 3 Jun 2020 19:28:05 +0000 (-0700) Subject: freedreno/a6xx: Turn on robustness extensions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fb7cad95c227348d2207ab814d9a819c5f205b0;p=mesa.git 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 Reviewed-by: Rob Clark Part-of: --- 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);