mesa/docs/gallium
Alyssa Rosenzweig e749f67f89 mesa,gallium: Make point coord origin a CAP
When lower_wpos_pntc is used, the state tracker inserts code to
transform gl_PointCoord.y according to a uniform, to account for
API-requested point coordinate origin and framebuffer orientation. With
the transformation, driver-supplied point coordinates are expected to
have an upper left origin.

If the hardware point coordinate supports (only) a lower left origin,
the backend has to use lower_wpos_pntc and then lower *again* to flip
back. This ends up transforming twice, which is wasteful:

   a = load point coord Y with lower left origin
   a' = 1.0 - a
   a'' = uniform_transform(a')

However, lower_wpos_pntc is quite capable of transforming for a lower
left origin too, it just needs to flip the transformation. Add a CAP
specifying the point coordinate origin convention, rather than assuming
upper-left. This simplifies the Asahi code greatly.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16829>
2022-06-08 14:10:50 +00:00
..
cso gallium: add rasterizer depth_clamp enable bit 2021-09-09 18:29:26 +00:00
buffermapping.rst util: Rename pipe_debug_callback to util_debug_callback 2022-04-01 01:52:43 +00:00
context.rst gallium: remove vertices_per_patch, add pipe_context::set_patch_vertices 2021-08-21 00:08:11 +00:00
cso.rst
debugging.rst gallium: when tracing is enabled for threaded drivers, trace the driver thread 2021-04-21 14:28:44 +00:00
distro.rst
format.rst docs/gallium: Document the index buffer format convention 2021-06-01 23:40:47 +00:00
glossary.rst
index.rst docs: Add some documentation of game GL buffer object mapping behavior. 2021-03-09 09:24:23 -08:00
intro.rst
pipeline.txt
postprocess.rst docs: move gallium specific docs into gallium folder 2020-07-07 10:22:08 +00:00
resources.rst
screen.rst mesa,gallium: Make point coord origin a CAP 2022-06-08 14:10:50 +00:00
tgsi.rst gallium: rename fine derivative cap 2022-03-17 16:44:42 +00:00