Files
mesa/src/util
Italo Nicola 28837ac970 gallium: implement u_default_clear_texture
util_clear_texture implements clear_texture through a memset.
This patch implements u_default_clear_texture, which tries to clear the
given texture using a surface plus clear_render_target or
clear_depth_stencil.

In case this path fails, either because the formats are non-renderable
or for some other reason, we fallback to `util_clear_texture`, which is
guaranteed to work.

This will allow us to make ARB_clear_texture available to every driver,
as well as provide HW acceleration for the clear_texture operation.

If some hardware doesn't want to use it, such as llvmpipe, it can always
just directly point to the software version using pipe->clear_texture.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-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/23735>
2023-07-10 15:23:06 +00:00
..
2023-05-29 21:06:12 +00:00
2023-07-03 19:51:04 +00:00
2022-04-22 19:38:52 +00:00
2022-09-29 23:40:18 +00:00
2022-09-29 23:40:18 +00:00
2022-06-02 13:09:16 +00:00
2021-08-14 21:44:32 +00:00
2023-01-19 03:25:55 +00:00
2023-03-05 16:31:51 +00:00
2022-11-14 20:13:20 +00:00
2023-04-24 22:42:04 +00:00
2023-04-24 22:42:04 +00:00
2023-06-21 21:51:59 +00:00
2023-02-12 17:11:16 +00:00
2023-03-26 00:16:26 +00:00
2023-03-26 00:16:26 +00:00
2022-06-02 13:09:16 +00:00
2022-11-04 23:20:02 +00:00
2022-11-04 23:20:02 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2023-05-19 16:30:44 +00:00
2022-08-04 23:53:49 +00:00
2022-11-24 04:33:07 +00:00
2022-12-17 19:14:12 +00:00
2022-12-17 19:14:12 +00:00
2021-08-14 21:44:32 +00:00