mesa/src/panfrost/lib
Alyssa Rosenzweig d31cb824df
Some checks failed
macOS-CI / macOS-CI (dri) (push) Has been cancelled
macOS-CI / macOS-CI (xlib) (push) Has been cancelled
treewide: use VARYING_BIT_*
Via Coccinelle patch generated by the following Python:

  varys = [ "POS", "COL0", "COL1", "FOGC", "TEX0", "TEX1", "TEX2", "TEX3", "TEX4",
           "TEX5", "TEX6", "TEX7", "PSIZ", "BFC0", "BFC1", "EDGE", "CLIP_VERTEX",
           "CLIP_DIST0", "CLIP_DIST1", "CULL_DIST0", "CULL_DIST1", "PRIMITIVE_ID",
           "PRIMITIVE_COUNT", "LAYER", "VIEWPORT", "FACE",
           "PRIMITIVE_SHADING_RATE", "PNTC", "TESS_LEVEL_OUTER",
           "TESS_LEVEL_INNER", "PRIMITIVE_INDICES", "BOUNDING_BOX0",
           "BOUNDING_BOX1", "VIEWPORT_MASK", "CULL_PRIMITIVE" ]
  t = """
  @@
  @@

  -(1 << VARYING_SLOT_${V})
  +VARYING_BIT_${V}

  @@
  @@

  -BITFIELD_BIT(VARYING_SLOT_${V})
  +VARYING_BIT_${V}

  @@
  @@

  -(1ull << VARYING_SLOT_${V})
  +VARYING_BIT_${V}

  @@
  @@

  -BITFIELD64_BIT(VARYING_SLOT_${V})
  +VARYING_BIT_${V}

  """
  for v in varys:
      from mako.template import Template
      print(Template(t).render(V = v))

Closes: #13453
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> [panfrost, common]
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> [broadcom]
Reviewed-by: Corentin Noël <corentin.noel@collabora.com> [virgl]
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> [zink]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35917>
2025-07-04 19:01:04 +00:00
..
kmod pan/kmod: Explicitly set the user MMIO offset when the KMD supports it 2025-07-03 07:34:18 +00:00
tests pan/layout: Interleave header/body in AFBC(3D) 2025-06-27 07:06:07 +00:00
.gitignore
meson.build pan: Add the concept of modifier handler 2025-06-25 12:10:53 +02:00
pan_afbc.h pan/layout: Interleave header/body in AFBC(3D) 2025-06-27 07:06:07 +00:00
pan_afrc.h pan/afxc: s/pan_format_supports_afxc/pan_afxc_supports_format/ 2025-06-25 12:10:37 +02:00
pan_blend.c panfrost, panvk: Use arch version 9 to distinguish between Bifrost & Valhall 2025-06-18 16:09:03 +00:00
pan_blend.h panfrost, panvk: Use arch version 9 to distinguish between Bifrost & Valhall 2025-06-18 16:09:03 +00:00
pan_clear.c panfrost: pass blendable formats to pan_pack_color 2023-11-06 14:30:28 +01:00
pan_desc.c pan/layout: Allow bigger size/surface stride on v12+ 2025-06-27 07:06:07 +00:00
pan_desc.h pan: Add the concept of modifier handler 2025-06-25 12:10:53 +02:00
pan_earlyzs.c pan/earlyzs: Default to FORCE_EARLY for ZS update on v11+ 2025-04-15 13:36:07 +02:00
pan_earlyzs.h pan/earlyzs: Fix the read-only ZS optimization 2025-04-14 15:20:06 +00:00
pan_encoder.h panfrost, panvk: Use arch version 9 to distinguish between Bifrost & Valhall 2025-06-18 16:09:03 +00:00
pan_format.c pan: Teach libpanfrost about YU08/Y010 2025-06-25 18:40:32 +02:00
pan_format.h pan: Teach libpanfrost about YU08/Y010 2025-06-25 18:40:32 +02:00
pan_image.h pan: Make it so all pan_image_xxx helpers get passed an image 2025-06-25 12:10:53 +02:00
pan_jc.h pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_layout.c pan: Make it so all pan_image_xxx helpers get passed an image 2025-06-25 12:10:53 +02:00
pan_layout.h pan/layout: Allow bigger size/surface stride on v12+ 2025-06-27 07:06:07 +00:00
pan_mod.c pan/layout: Allow bigger size/surface stride on v12+ 2025-06-27 07:06:07 +00:00
pan_mod.h pan: Add the concept of modifier handler 2025-06-25 12:10:53 +02:00
pan_pool.h pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_props.c panfrost: add max_4x_msaa quirk 2025-05-27 17:41:47 +00:00
pan_props.h panfrost: add max_4x_msaa quirk 2025-05-27 17:41:47 +00:00
pan_samples.c pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_samples.h pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_scratch.c pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_shader.c treewide: use VARYING_BIT_* 2025-07-04 19:01:04 +00:00
pan_shader.h panfrost, panvk: Use arch version 9 to distinguish between Bifrost & Valhall 2025-06-18 16:09:03 +00:00
pan_texture.c pan/layout: Allow bigger size/surface stride on v12+ 2025-06-27 07:06:07 +00:00
pan_texture.h pan: Add the concept of modifier handler 2025-06-25 12:10:53 +02:00
pan_tiler.c pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_util.c pan: Use a consistent pan_ prefix across src/panfrost/* 2025-05-21 14:58:20 +02:00
pan_util.h panfrost: enable 8x and 16x msaa modes when supported 2025-06-10 19:22:48 +00:00
wrap.h panfrost: Kill the mali_ptr typedef 2025-01-07 11:10:55 +00:00