mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 18:48:18 +02:00
r600g: use floats instead of hex for blit vbo
once I go past 0x3f80000, I can't translate hex to float in-brain anymore.
This commit is contained in:
parent
03923ff95e
commit
fb5ef05dc5
1 changed files with 9 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue