u_surface: use optimised memset64

Use the newly added optimised memset64 path

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9041>
This commit is contained in:
Dave Airlie
2021-02-15 07:50:58 +10:00
committed by Marge Bot
parent 83f0bc5d84
commit 3116f9801b

View File

@@ -145,6 +145,12 @@ util_fill_rect(ubyte * dst,
dst += dst_stride;
}
break;
case 8:
for (i = 0; i < height; i++) {
util_memset64(dst, ((uint64_t *)uc)[0], width);
dst += dst_stride;
}
break;
default:
for (i = 0; i < height; i++) {
ubyte *row = dst;
@@ -489,9 +495,7 @@ util_fill_zs_rect(ubyte *dst_map,
case 8:
if (!need_rmw) {
for (i = 0; i < height; i++) {
uint64_t *row = (uint64_t *)dst_map;
for (j = 0; j < width; j++)
*row++ = zstencil;
util_memset64(dst_map, zstencil, width);
dst_map += dst_stride;
}
}