Mesa (master): nvc0: enable GL_NV_shader_atomic_float on pre-Maxwell

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 27 01:06:17 UTC 2018


Module: Mesa
Branch: master
Commit: 1d10bb202558829d8bd18e211fe91e42475e214c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d10bb202558829d8bd18e211fe91e42475e214c

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Wed Dec 26 20:01:28 2018 -0500

nvc0: enable GL_NV_shader_atomic_float on pre-Maxwell

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 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 04e06cdd75..4c83197725 100644
--- a/docs/relnotes/19.0.0.html
+++ b/docs/relnotes/19.0.0.html
@@ -46,6 +46,7 @@ TBD.
 <li>GL_EXT_render_snorm on gallium drivers (ES extension).</li>
 <li>GL_EXT_texture_view on drivers supporting texture views (ES extension).</li>
 <li>GL_OES_texture_view on drivers supporting texture views (ES extension).</li>
+<li>GL_NV_shader_atomic_float on nvc0 (Fermi/Kepler only).</li>
 </ul>
 
 <h2>Bug fixes</h2>
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index bd48f15063..b68eddd133 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:




More information about the mesa-commit mailing list