Mesa (master): gallivm: Fix SoA cubemap derivative computation.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sun Oct 17 16:43:35 UTC 2010
Module: Mesa
Branch: master
Commit: dc5bdbe0f96d288bc84d318d25a59dc13c1e81de
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc5bdbe0f96d288bc84d318d25a59dc13c1e81de
Author: José Fonseca <jfonseca at vmware.com>
Date: Sun Oct 17 09:32:41 2010 -0700
gallivm: Fix SoA cubemap derivative computation.
Derivatives are now scalar.
Broken since 17dbd41cf23e7e7de2f27e5e9252d7f792d932f3.
---
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 8c03284..53cc0c5 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@ -963,12 +963,12 @@ lp_build_sample_general(struct lp_build_sample_context *bld,
r = lp_build_broadcast_scalar(&bld->int_coord_bld, face); /* vec */
/* recompute ddx, ddy using the new (s,t) face texcoords */
- face_ddx[0] = lp_build_ddx(&bld->coord_bld, s);
- face_ddx[1] = lp_build_ddx(&bld->coord_bld, t);
+ face_ddx[0] = lp_build_scalar_ddx(&bld->coord_bld, s);
+ face_ddx[1] = lp_build_scalar_ddx(&bld->coord_bld, t);
face_ddx[2] = NULL;
face_ddx[3] = NULL;
- face_ddy[0] = lp_build_ddy(&bld->coord_bld, s);
- face_ddy[1] = lp_build_ddy(&bld->coord_bld, t);
+ face_ddy[0] = lp_build_scalar_ddy(&bld->coord_bld, s);
+ face_ddy[1] = lp_build_scalar_ddy(&bld->coord_bld, t);
face_ddy[2] = NULL;
face_ddy[3] = NULL;
ddx = face_ddx;
More information about the mesa-commit
mailing list