From 1d10bb202558829d8bd18e211fe91e42475e214c Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Wed, 26 Dec 2018 20:01:28 -0500 Subject: [PATCH] nvc0: enable GL_NV_shader_atomic_float on pre-Maxwell Signed-off-by: Ilia Mirkin --- docs/relnotes/19.0.0.html | 1 + src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/relnotes/19.0.0.html b/docs/relnotes/19.0.0.html index 04e06cdd758..4c831977258 100644 --- a/docs/relnotes/19.0.0.html +++ b/docs/relnotes/19.0.0.html @@ -46,6 +46,7 @@ TBD.
  • GL_EXT_render_snorm on gallium drivers (ES extension).
  • GL_EXT_texture_view on drivers supporting texture views (ES extension).
  • GL_OES_texture_view on drivers supporting texture views (ES extension).
  • +
  • GL_NV_shader_atomic_float on nvc0 (Fermi/Kepler only).
  • Bug fixes

    diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index bd48f15063a..b68eddd1338 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c @@ -275,6 +275,8 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_BALLOT: case PIPE_CAP_BINDLESS_TEXTURE: return class_3d >= NVE4_3D_CLASS; + case PIPE_CAP_TGSI_ATOMFADD: + return class_3d < GM107_3D_CLASS; /* needs additional lowering */ case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE: case PIPE_CAP_TGSI_VS_LAYER_VIEWPORT: case PIPE_CAP_TGSI_TES_LAYER_VIEWPORT: -- 2.30.2