Module: Mesa Branch: main Commit: e17e3df476ec0f3f537f0169ccd5488f27802bf6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e17e3df476ec0f3f537f0169ccd5488f27802bf6
Author: Adam Jackson <[email protected]> Date: Mon May 10 15:46:42 2021 -0400 drisw: Don't bzero displaytarget pixels Drivers generally don't clear new resources. Reviewed-by: Emma Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10758> --- src/gallium/drivers/llvmpipe/lp_texture.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index 525e9f434ac..040b49bcdc2 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -217,20 +217,7 @@ llvmpipe_displaytarget_layout(struct llvmpipe_screen *screen, map_front_private, &lpr->row_stride[0] ); - if (lpr->dt == NULL) - return FALSE; - - if (!map_front_private) { - void *map = winsys->displaytarget_map(winsys, lpr->dt, - PIPE_MAP_WRITE); - - if (map) - memset(map, 0, height * lpr->row_stride[0]); - - winsys->displaytarget_unmap(winsys, lpr->dt); - } - - return TRUE; + return lpr->dt != NULL; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
