mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
etnaviv: rs: Directly call etna_try_rs_blit(..)
Also remove some old comments. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19013>
This commit is contained in:
parent
a331717ed7
commit
a9b11d02d3
1 changed files with 1 additions and 22 deletions
|
|
@ -819,27 +819,6 @@ manual:
|
|||
return false;
|
||||
}
|
||||
|
||||
static bool
|
||||
etna_blit_rs(struct pipe_context *pctx, const struct pipe_blit_info *blit_info)
|
||||
{
|
||||
/* This is a more extended version of resource_copy_region */
|
||||
/* TODO Some cases can be handled by RS; if not, fall back to rendering or
|
||||
* even CPU copy block of pixels from info->src to info->dst
|
||||
* (resource, level, box, format);
|
||||
* function is used for scaling, flipping in x and y direction (negative
|
||||
* width/height), format conversion, mask and filter and even a scissor rectangle
|
||||
*
|
||||
* What can the RS do for us:
|
||||
* convert between tiling formats (layouts)
|
||||
* downsample 2x in x and y
|
||||
* convert between a limited number of pixel formats
|
||||
*
|
||||
* For the rest, fall back to util_blitter
|
||||
* XXX this goes wrong when source surface is supertiled. */
|
||||
|
||||
return etna_try_rs_blit(pctx, blit_info);
|
||||
}
|
||||
|
||||
void
|
||||
etna_clear_blit_rs_init(struct pipe_context *pctx)
|
||||
{
|
||||
|
|
@ -847,5 +826,5 @@ etna_clear_blit_rs_init(struct pipe_context *pctx)
|
|||
|
||||
DBG("etnaviv: Using RS blit engine");
|
||||
pctx->clear = etna_clear_rs;
|
||||
ctx->blit = etna_blit_rs;
|
||||
ctx->blit = etna_try_rs_blit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue