mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
mesa: get correct src address for transferOps
When texstore_rgba() takes the path that doesn't handle
transferOps it was correctly calling _mesa_image_address()
to apply any pixel store unpack setting to the starting src
address. This was missing from the transferOps path so we add it
in this patch.
Fixes: 4b249d2eed ("mesa: Handle transferOps in texstore_rgba")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10314
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35481>
This commit is contained in:
parent
59a5e042b2
commit
1f2568ae31
1 changed files with 3 additions and 1 deletions
|
|
@ -776,7 +776,9 @@ texstore_rgba(TEXSTORE_PARAMS)
|
|||
}
|
||||
|
||||
/* Convert from src to RGBA float */
|
||||
src = (GLubyte *) srcAddr;
|
||||
src = (GLubyte *)
|
||||
_mesa_image_address(dims, srcPacking, srcAddr, srcWidth, srcHeight,
|
||||
srcFormat, srcType, 0, 0, 0);
|
||||
dst = (GLubyte *) tempRGBA;
|
||||
for (img = 0; img < srcDepth; img++) {
|
||||
_mesa_format_convert(dst, RGBA32_FLOAT, 4 * srcWidth * sizeof(float),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue