Mike Blumenkrantz
6cc2929e87
zink: add more clear hooks
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11466 >
2021-06-22 12:45:39 +00:00
Mike Blumenkrantz
91bd4fc613
zink: add a pipe_context::clear_buffer hook
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10679 >
2021-05-07 17:00:30 +00:00
Mike Blumenkrantz
6d138b5f92
zink: refactor clears a little to track a bitfield of enabled clears on the context
...
this makes the state of 'are there clears pending?' more accessible
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9726 >
2021-03-23 17:14:05 +00:00
Mike Blumenkrantz
11ea1d1777
zink: unify clear color conversion code
...
at some point this will get fixed to work for format conversions
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9712 >
2021-03-23 14:34:19 +00:00
Mike Blumenkrantz
5ac0c2c5c9
zink: always do full-fb clears in renderpass begin when possible
...
previously if any of the pending clears required an explicit clear then
we'd clear them explicitly, but with this patch we're shifting the first
pending clear into the renderpass begin if possible and then applying the
remaining clears on top of that in order to reduce gpu operations
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9206 >
2021-02-24 01:58:59 +00:00
Mike Blumenkrantz
5fe329e307
zink: move all the clear stuff to zink_clear.h
...
this was getting way too crowded in zink_context.h
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9206 >
2021-02-24 01:58:59 +00:00