Mesa (master): nv50_2d: regenerate envytools-based rnndb headers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 15 14:41:42 UTC 2020


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

Author: Rhys Kidd <rhyskidd at gmail.com>
Date:   Wed Jul 15 23:04:32 2020 +1000

nv50_2d: regenerate envytools-based rnndb headers

The headers hadn't been regenerated from envytools in a long time,
and there were a few minor divergences.

Based on envytools commit c20929ed0f3be18b8419f7332ee22d905feb6589

Among other things, rnndb has changed naming to G80/etc, for now
I've not tackled switching that over and replaced the nvidia
codenames back to the chip ids that mesa uses with the following:

  $ sed -i 's/G80_2D/NV50_2D/g' rnndb/graph/g80_2d.xml.h
  $ sed -i 's/GF100_2D/NVC0_2D/g' rnndb/graph/g80_2d.xml.h

No other modifications of the headergen'd headers was done, which
was helped by the differing #define's being unutilised presently.

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
Reviewed-by: Karol Herbst <kherbst at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5920>

---

 src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h | 44 ++++++++++++++++++--------
 1 file changed, 30 insertions(+), 14 deletions(-)

diff --git a/src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h b/src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h
index 31e7cf82233..475f8da63a8 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h
+++ b/src/gallium/drivers/nouveau/nv50/nv50_2d.xml.h
@@ -4,18 +4,18 @@
 /* Autogenerated file, DO NOT EDIT manually!
 
 This file was generated by the rules-ng-ng headergen tool in this git repository:
-http://github.com/envytools/envytools/
+https://github.com/envytools/envytools/
 git clone https://github.com/envytools/envytools.git
 
 The rules-ng-ng source files this header was generated from are:
-- rnndb/graph/g80_2d.xml   (  11440 bytes, from 2014-09-25 06:32:11)
-- rnndb/copyright.xml      (   6452 bytes, from 2013-05-14 03:57:49)
-- rnndb/fifo/nv_object.xml (  15326 bytes, from 2014-09-25 06:32:11)
-- rnndb/nvchipsets.xml     (   2759 bytes, from 2014-10-05 01:51:02)
-- rnndb/g80_defs.xml       (  18175 bytes, from 2014-09-25 06:32:11)
-- rnndb/nv_defs.xml        (   4399 bytes, from 2013-09-07 03:32:45)
-
-Copyright (C) 2006-2014 by the following authors:
+- rnndb/graph/g80_2d.xml         (  11609 bytes, from 2020-07-15 13:41:28)
+- rnndb/copyright.xml            (   6431 bytes, from 2020-07-11 09:17:41)
+- rnndb/fifo/nv_object.xml       (  16105 bytes, from 2020-07-11 09:17:37)
+- rnndb-generated/nvchipsets.xml (   3335 bytes, from 2020-06-09 15:36:30)
+- rnndb/g80_defs.xml             (  21768 bytes, from 2018-06-10 18:06:54)
+- rnndb/nv_defs.xml              (   5388 bytes, from 2018-06-10 18:06:54)
+
+Copyright (C) 2006-2020 by the following authors:
 - Artur Huillet <arthur.huillet at free.fr> (ahuillet)
 - Ben Skeggs (darktama, darktama_)
 - B. R. <koala_br at users.sourceforge.net> (koala_br)
@@ -27,13 +27,13 @@ Copyright (C) 2006-2014 by the following authors:
 - EdB <edb_ at users.sf.net> (edb_)
 - Erik Waling <erikwailing at users.sf.net> (erikwaling)
 - Francisco Jerez <currojerez at riseup.net> (curro)
-- imirkin <imirkin at users.sf.net> (imirkin)
+- Ilia Mirkin <imirkin at alum.mit.edu> (imirkin)
 - jb17bsome <jb17bsome at bellsouth.net> (jb17bsome)
 - Jeremy Kolb <kjeremy at users.sf.net> (kjeremy)
 - Laurent Carlier <lordheavym at gmail.com> (lordheavy)
 - Luca Barbieri <luca at luca-barbieri.com> (lb, lb1)
 - Maarten Maathuis <madman2003 at gmail.com> (stillunknown)
-- Marcin Kościelnicki <koriakin at 0x04.net> (mwk, koriakin)
+- Marcelina Kościelnicka <mwk at 0x04.net> (mwk)
 - Mark Carey <mark.carey at gmail.com> (careym)
 - Matthieu Castet <matthieu.castet at parrot.com> (mat-c)
 - nvidiaman <nvidiaman at users.sf.net> (nvidiaman)
@@ -88,7 +88,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #define NV50_2D_DST_LINEAR					0x00000204
 
-#define NV50_2D_DST_TILE_MODE					0x00000208
+#define NV50_2D_DST_BLOCK_DIMENSIONS				0x00000208
+#define NV50_2D_DST_BLOCK_DIMENSIONS_DEPTH__MASK			0x00000f00
+#define NV50_2D_DST_BLOCK_DIMENSIONS_DEPTH__SHIFT		8
+#define NV50_2D_DST_BLOCK_DIMENSIONS_HEIGHT__MASK		0x000000f0
+#define NV50_2D_DST_BLOCK_DIMENSIONS_HEIGHT__SHIFT		4
+#define NV50_2D_DST_BLOCK_DIMENSIONS_WIDTH__MASK			0x0000000f
+#define NV50_2D_DST_BLOCK_DIMENSIONS_WIDTH__SHIFT		0
 
 #define NV50_2D_DST_DEPTH					0x0000020c
 
@@ -114,7 +120,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 #define NV50_2D_SRC_LINEAR					0x00000234
 
-#define NV50_2D_SRC_TILE_MODE					0x00000238
+#define NV50_2D_SRC_BLOCK_DIMENSIONS				0x00000238
+#define NV50_2D_SRC_BLOCK_DIMENSIONS_DEPTH__MASK			0x00000f00
+#define NV50_2D_SRC_BLOCK_DIMENSIONS_DEPTH__SHIFT		8
+#define NV50_2D_SRC_BLOCK_DIMENSIONS_HEIGHT__MASK		0x000000f0
+#define NV50_2D_SRC_BLOCK_DIMENSIONS_HEIGHT__SHIFT		4
+#define NV50_2D_SRC_BLOCK_DIMENSIONS_WIDTH__MASK			0x0000000f
+#define NV50_2D_SRC_BLOCK_DIMENSIONS_WIDTH__SHIFT		0
 
 #define NV50_2D_SRC_DEPTH					0x0000023c
 
@@ -218,7 +230,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define NV50_2D_PATTERN_SELECT_BITMAP_1X64			0x00000002
 #define NV50_2D_PATTERN_SELECT_COLOR				0x00000003
 
-#define NVC0_2D_SET_DST_COLOR_RENDER_TO_ZETA_SURFACE  0x000002b8
+#define NVC0_2D_SET_DST_COLOR_RENDER_TO_ZETA_SURFACE		0x000002b8
+
+#define NVC0_2D_UNK02BC(i0)				       (0x000002bc + 0x4*(i0))
+#define NVC0_2D_UNK02BC__ESIZE					0x00000004
+#define NVC0_2D_UNK02BC__LEN					0x00000008
 
 #define NVC0_2D_UNK2DC						0x000002dc
 



More information about the mesa-commit mailing list