summaryrefslogtreecommitdiff
path: root/src/evergreen_state.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-11-21 11:35:40 +1100
committerAlex Deucher <alexdeucher@gmail.com>2011-11-21 11:48:40 -0500
commitd669c34f140c000f88c4b4e464e44e6c8694f581 (patch)
treefbcd881f46fb7c304bc95e11f3e8e2e055375fb2 /src/evergreen_state.h
parent422bdd4fe6cb728e1dd08a56f6ee2d0f009cbfcb (diff)
ddx/evergreen: Fix endian of ALU constants
The constants are written directly into a buffer object shared with the card and we "forget" to swap them. This patch fixes it by doing the swap in evergreen_set_alu_consts() in-place (ie, it modifies the buffer), which should be fine with the way we use it in the ddx. This makes everything work fine on my caicos card on a G5 including some quik tests with Xv, gnome3 shell, etc... Thanks a lot to Jerome Glisse for holding my hand through debugging that (and finding the actual bug). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/evergreen_state.h')
-rw-r--r--src/evergreen_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evergreen_state.h b/src/evergreen_state.h
index 40fec229..5fd85f86 100644
--- a/src/evergreen_state.h
+++ b/src/evergreen_state.h
@@ -120,6 +120,7 @@ typedef struct {
int size_bytes;
uint64_t const_addr;
struct radeon_bo *bo;
+ uint32_t *cpu_ptr;
} const_config_t;
/* Vertex buffer / vtx resource */