llvmpipe: remove unneeded casts

Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17561>
This commit is contained in:
Brian Paul 2022-06-22 12:41:59 -06:00 committed by Marge Bot
parent 1f96c24465
commit 9bb062bade
2 changed files with 15 additions and 15 deletions

View File

@ -87,9 +87,9 @@ lp_rast_linear_tile(struct lp_rasterizer_task *task,
task->y,
task->width,
task->height,
(const float (*)[4])GET_A0(inputs),
(const float (*)[4])GET_DADX(inputs),
(const float (*)[4])GET_DADY(inputs),
GET_A0(inputs),
GET_DADX(inputs),
GET_DADY(inputs),
scene->cbufs[0].map,
scene->cbufs[0].stride))
return;
@ -101,9 +101,9 @@ lp_rast_linear_tile(struct lp_rasterizer_task *task,
task->y,
task->width,
task->height,
(const float (*)[4])GET_A0(inputs),
(const float (*)[4])GET_DADX(inputs),
(const float (*)[4])GET_DADY(inputs),
GET_A0(inputs),
GET_DADX(inputs),
GET_DADY(inputs),
scene->cbufs[0].map,
scene->cbufs[0].stride))
return;
@ -155,9 +155,9 @@ lp_rast_linear_rect(struct lp_rasterizer_task *task,
if (variant->jit_linear_blit(state,
box.x0, box.y0,
width, height,
(const float (*)[4])GET_A0(inputs),
(const float (*)[4])GET_DADX(inputs),
(const float (*)[4])GET_DADY(inputs),
GET_A0(inputs),
GET_DADX(inputs),
GET_DADY(inputs),
scene->cbufs[0].map,
scene->cbufs[0].stride)) {
return;
@ -168,9 +168,9 @@ lp_rast_linear_rect(struct lp_rasterizer_task *task,
if (variant->jit_linear(state,
box.x0, box.y0,
width, height,
(const float (*)[4])GET_A0(inputs),
(const float (*)[4])GET_DADX(inputs),
(const float (*)[4])GET_DADY(inputs),
GET_A0(inputs),
GET_DADX(inputs),
GET_DADY(inputs),
scene->cbufs[0].map,
scene->cbufs[0].stride)) {
return;

View File

@ -457,9 +457,9 @@ do_triangle_ccw(struct lp_setup_context *setup,
if (0)
lp_dump_setup_coef(&setup->setup.variant->key,
(const float (*)[4])GET_A0(&tri->inputs),
(const float (*)[4])GET_DADX(&tri->inputs),
(const float (*)[4])GET_DADY(&tri->inputs));
GET_A0(&tri->inputs),
GET_DADX(&tri->inputs),
GET_DADY(&tri->inputs));
struct lp_rast_plane *plane = GET_PLANES(tri);