st_pbo/compute: fix 1D_ARRAY offsets
these come in as yoffset, but the constant data must use 0 since the sampler
view is created with the offset
cc: mesa-stable
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18118>
(cherry picked from commit cd07a0002f
)
This commit is contained in:

committed by
Dylan Baker

parent
242b498115
commit
2adacf5594
@@ -13198,7 +13198,7 @@
|
|||||||
"description": "st_pbo/compute: fix 1D_ARRAY offsets",
|
"description": "st_pbo/compute: fix 1D_ARRAY offsets",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 0,
|
"nomination_type": 0,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null
|
"because_sha": null
|
||||||
},
|
},
|
||||||
|
@@ -790,10 +790,10 @@ download_texture_compute(struct st_context *st,
|
|||||||
/* Upload constants */
|
/* Upload constants */
|
||||||
{
|
{
|
||||||
struct pipe_constant_buffer cb;
|
struct pipe_constant_buffer cb;
|
||||||
assert(view_target != PIPE_TEXTURE_1D_ARRAY || !yoffset);
|
assert(view_target != PIPE_TEXTURE_1D_ARRAY || !zoffset);
|
||||||
struct pbo_data pd = {
|
struct pbo_data pd = {
|
||||||
.x = xoffset,
|
.x = xoffset,
|
||||||
.y = yoffset,
|
.y = view_target == PIPE_TEXTURE_1D_ARRAY ? 0 : yoffset;
|
||||||
.width = width, .height = height, .depth = depth,
|
.width = width, .height = height, .depth = depth,
|
||||||
.invert = pack->Invert,
|
.invert = pack->Invert,
|
||||||
.blocksize = util_format_get_blocksize(dst_format) - 1,
|
.blocksize = util_format_get_blocksize(dst_format) - 1,
|
||||||
|
Reference in New Issue
Block a user