clover: fix pipe_box update regression

Indeed, clover was processing the pipe_box elements with a hardcoded
order. The update of the pipe_box object broke clover.

Fixes: 651191801a ("gallium: increase the size of pipe_box y, height fields to allow bigger textures")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29060>
(cherry picked from commit f848921148)
This commit is contained in:
Patrick Lerda 2024-05-06 11:09:02 +02:00 committed by Eric Engestrom
parent 02e295cb5c
commit c0d4d3e576
2 changed files with 3 additions and 5 deletions

View file

@ -24,7 +24,7 @@
"description": "clover: fix pipe_box update regression",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "651191801a8751c9ac1bc09327a50c19a9927392",
"notes": null

View file

@ -34,10 +34,8 @@ using namespace clover;
namespace {
class box {
public:
box(const resource::vector &origin, const resource::vector &size) :
pipe({ (int)origin[0], (int16_t)origin[1],
(int16_t)origin[2], (int)size[0],
(int16_t)size[1], (int16_t)size[2] }) {
box(const resource::vector &origin, const resource::vector &size) {
u_box_3d(origin[0], origin[1], origin[2], size[0], size[1], size[2], &pipe);
}
operator const pipe_box *() {