mesa/docs/gallium
Rob Clark 7dc6fbd5c5 gallium: Switch TIMESTAMP_RAW back to callback
The original MR switched to use a float raw_timestamp_period to scale
the raw timestamp outside of the gallium driver.  This better matched
how vulkan works.

But unlike vulkan, gallium has timestamp related queries/APIs that
return already scaled time, resulting in small errors if the way the
scaling is done differs between driver scaling and frontend scaling.
The important thing is that any error introduced by scaling must be
the same error across APIs.

(In particular, a f64 value cannot preciesly represent an arbitrary
u64 value.  OTOH the driver's scaling could be simply multiply be an
integer.  But differing precision errors of the two approachs causes
problems when comparing between timestamps that are converted in
different ways.)

In some, but not all, cases this could be addressed by changing the
driver to use the same scaling function, but this is not always possible
(if, for ex, the scaling is done on the GPU CP).  So switch back to
the original approach from !39995, using a pscreen->convert_timestamp()
callback, to put the control back in the hands of the driver.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40051>
2026-02-24 23:19:34 +00:00
..
cso gallium: remove polygon_offset_units_unscaled pipe cap 2025-05-26 17:01:03 +00:00
buffermapping.rst docs,src: replace doc and comments for PIPE_CAP with pipe_caps 2025-01-17 04:39:47 +00:00
context.rst gallium: Switch TIMESTAMP_RAW back to callback 2026-02-24 23:19:34 +00:00
cso.rst
debugging.rst docs: move generic gallium envvars to root doc 2022-11-15 11:25:05 +01:00
format.rst docs: apply some redirects 2022-11-10 17:26:19 +01:00
glossary.rst docs/gallium: move period out of quotes 2022-11-15 10:01:15 +00:00
index.rst docs: Drop distro unmaintained and deprecated file. 2025-04-19 15:52:12 +02:00
intro.rst
pipeline.txt
postprocess.rst docs: apply permanent redirect 2023-11-16 20:30:08 +00:00
resources.rst docs,src: replace doc and comments for PIPE_CAP with pipe_caps 2025-01-17 04:39:47 +00:00
screen.rst gallium: make needless linear interpolation optional 2026-01-30 09:50:37 +00:00
tgsi.rst tgsi: Drop TGSI_SEMANTIC_TESS_DEFAULT_OUTER/INNER_LEVEL 2025-08-13 13:55:01 +00:00