diff options
author | Alyssa Rosenzweig <alyssa@collabora.com> | 2022-10-14 13:45:48 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-10-16 02:23:12 +0000 |
commit | 4c7a44413a07d3fb314f786e047bb7212c082a6c (patch) | |
tree | 4f8cddf723401cbf657f59faefc2d7d33eef1c10 /src/gallium/auxiliary/util/u_screen.c | |
parent | 86c9aa6bfeb06ab04c22604339e8aef2d0c451c8 (diff) |
mesa,gallium: Revert "Make point coord origin a CAP"
This reverts commit e749f67f8989874f6795d95422c1f3eb4d2706ba, which added a CAP
to support drivers that can only do upside-down point coordinates. That was
added specifically for Asahi, since Metal's point coordinate convention is
opposite Mesa's. Since then, additional reverse-engineering aided by the PowerVR
headers led me to the bit doing the flip in hardware, so Asahi does not use the
CAP since baadc1ec13f ("asahi: Don't use lower_wpos_pntc"). Garbage collect it.
[If it's needed for future hardware, we can revive it. But the plan is Vulkan
anyway.]
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19078>
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 6e544bf0f9e..4700cfbda32 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -75,11 +75,6 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_FS_COORD_ORIGIN_LOWER_LEFT: case PIPE_CAP_FS_COORD_PIXEL_CENTER_HALF_INTEGER: case PIPE_CAP_FS_COORD_PIXEL_CENTER_INTEGER: - return 0; - - case PIPE_CAP_POINT_COORD_ORIGIN_UPPER_LEFT: - return 1; - case PIPE_CAP_DEPTH_CLIP_DISABLE: case PIPE_CAP_DEPTH_CLIP_DISABLE_SEPARATE: case PIPE_CAP_DEPTH_CLAMP_ENABLE: |