summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-09-23 10:01:08 +1000
committerDave Airlie <airlied@redhat.com>2010-09-23 10:01:48 +1000
commitfb5ef05dc5e57b6454bd43b9a0eca3b6e9bf27c1 (patch)
tree7bf2e91741d77bf847159764e918b26d63a49721 /src
parent03923ff95ed2c1ee54f0132e87e277b6cf07b7f5 (diff)
r600g: use floats instead of hex for blit vbo
once I go past 0x3f80000, I can't translate hex to float in-brain anymore.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_blit.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index 8db3de0c4f..a27696ac3b 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -169,16 +169,15 @@ static int r600_blit_state_vs_resources(struct r600_screen *rscreen, struct r600
struct radeon_state *rstate;
struct radeon_ws_bo *bo;
void *data;
- u32 vbo[] = {
- 0xBF800000, 0xBF800000, 0x3F800000, 0x3F800000,
- 0x3F000000, 0x3F000000, 0x3F000000, 0x00000000,
- 0x3F800000, 0xBF800000, 0x3F800000, 0x3F800000,
- 0x3F000000, 0x3F000000, 0x3F000000, 0x00000000,
- 0x3F800000, 0x3F800000, 0x3F800000, 0x3F800000,
- 0x3F000000, 0x3F000000, 0x3F000000, 0x00000000,
- 0xBF800000, 0x3F800000, 0x3F800000, 0x3F800000,
- 0x3F000000, 0x3F000000, 0x3F000000, 0x00000000
- };
+ float vbo[] = {
+ -1.0, -1.0, 1.0, 1.0,
+ 0.5, 0.5, 0.5, 0.0,
+ 1.0, -1.0, 1.0, 1.0,
+ 0.5, 0.5, 0.5, 0.0,
+ 1.0, 1.0, 1.0, 1.0,
+ 0.5, 0.5, 0.5, 0.0,
+ -1.0, 1.0, 1.0, 1.0,
+ 0.5, 0.5, 0.5, 0.0};
/* simple shader */
bo = radeon_ws_bo(rscreen->rw, 128, 4096, 0);