projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf173b5
)
a5xx: fix border color for depth formats
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sat, 8 Jul 2017 14:51:19 +0000
(10:51 -0400)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 9 Jul 2017 01:14:58 +0000
(21:14 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
index
c138905
..
8465389
100644
(file)
--- a/
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
+++ b/
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
@@
-173,7
+173,8
@@
struct PACKED bcolor_entry {
uint8_t ui8[4];
int8_t si8[4];
uint32_t rgb10a2;
- uint8_t __pad1[36];
+ uint32_t z24; /* also s8? */
+ uint8_t __pad1[32];
};
#define FD5_BORDER_COLOR_SIZE 0x60
@@
-213,6
+214,7
@@
setup_border_colors(struct fd_texture_stateobj *tex, struct bcolor_entry *entrie
e->rgb5a1 = 0;
e->rgba4 = 0;
e->rgb10a2 = 0;
+ e->z24 = 0;
for (j = 0; j < 4; j++) {
int c = desc->swizzle[j];
@@
-275,6
+277,8
@@
setup_border_colors(struct fd_texture_stateobj *tex, struct bcolor_entry *entrie
else
e->rgb10a2 |= (int)(f_u * 0x3ff) << (c * 10);
e->rgba4 |= (int)(f_u * 0xf) << (c * 4);
+ if (c == 0)
+ e->z24 = f_u * 0xffffff;
}
}