Skip to content

Follow Mesa main: KGSL GPU timestamps are upstream, refresh the cube and bindless patches - #20

Merged
maxjivi05 merged 2 commits into
mainfrom
fix/kgsl-timestamp-upstream
Nov 12, 2026
Merged

maxjivi05 merged 2 commits into
mainfrom
fix/kgsl-timestamp-upstream

Conversation

@maxjivi05

@maxjivi05 maxjivi05 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The scheduled build against Mesa main fails in scripts/linux_kgsl_wsi.py with KGSL timestamp stub changed, and two Linux patches no longer apply after it.

  • Mesa main now reads the GPU timestamp on KGSL (kgsl_device_get_gpu_timestamp calls kgsl_read_calibrated_ts), so the unreachable stub the script removed is gone.
  • linux/0003: a8xx_base gained a QCTDD10497382 entry next to the line the patch adds.
  • linux/0004: the with_crb size in r3d_common changed.
  • linux/0001: props.has_rt_workaround became the quirk QCTDD10497382_rt_workaround, so the mesh shader patch no longer compiled.

Fix

  • scripts/linux_kgsl_wsi.py keeps only the KGSL device numbers for dma-buf feedback. The stub removal, the null check and the calibrated timestamp / present timing gating are dropped, since the timestamp now works upstream.
  • linux/0003 and linux/0004 are refreshed against the new context. Their changes are the same.
  • linux/0001 reads the renamed quirk through FD_QUIRK.

Removed

  • The calibrated timestamp / present timing gating in scripts/linux_kgsl_wsi.py (Linux target), made redundant by Mesa main. KHR_calibrated_timestamps, EXT_calibrated_timestamps and EXT_present_timing are now advertised on KGSL as upstream does.

Tests

Closes #19

@maxjivi05
maxjivi05 merged commit f116478 into main Nov 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The scheduled DD-Turnip build is failing

1 participant