mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-18 03:40:34 +01:00
aux/tc: fix staging buffer sizing for texture_subdata
this is the size of the src data, not the dst data
Fixes: 51ad269198 ("aux/tc: handle stride mismatch during rp-optimized subdata")
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25180>
This commit is contained in:
parent
64b49fb501
commit
b6bc1f85f4
1 changed files with 1 additions and 1 deletions
|
|
@ -3153,7 +3153,7 @@ tc_texture_subdata(struct pipe_context *_pipe,
|
|||
uint64_t fmt_layer_stride = util_format_get_2d_size(format, stride, box->height);
|
||||
assert(fmt_layer_stride * box->depth <= UINT32_MAX);
|
||||
|
||||
struct pipe_resource *pres = pipe_buffer_create_with_data(pipe, 0, PIPE_USAGE_STREAM, fmt_layer_stride * box->depth, data);
|
||||
struct pipe_resource *pres = pipe_buffer_create_with_data(pipe, 0, PIPE_USAGE_STREAM, layer_stride * box->depth, data);
|
||||
struct pipe_box src_box = *box;
|
||||
src_box.x = src_box.y = src_box.z = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue