projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ebf07a
)
r600c: eg - fix uninitialized variable
author
Andre Maasikas
<amaasikas@gmail.com>
Mon, 13 Sep 2010 13:17:10 +0000
(16:17 +0300)
committer
Andre Maasikas
<amaasikas@gmail.com>
Mon, 13 Sep 2010 13:19:18 +0000
(16:19 +0300)
src/mesa/drivers/dri/r600/evergreen_chip.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/evergreen_chip.c
b/src/mesa/drivers/dri/r600/evergreen_chip.c
index 694943c2c4b4400f256e0d7c89b32175f96d2270..3067b8bf589e1dbe37a256bc4339b34a59686b50 100644
(file)
--- a/
src/mesa/drivers/dri/r600/evergreen_chip.c
+++ b/
src/mesa/drivers/dri/r600/evergreen_chip.c
@@
-893,6
+893,8
@@
static void evergreenSetDepthTarget(context_t *context)
evergreen->DB_DEPTH_SIZE.u32All = 0;
+ nPitchInPixel = rrb->pitch/rrb->cpp;
+
SETfield(evergreen->DB_DEPTH_SIZE.u32All, (nPitchInPixel/8)-1,
EG_DB_DEPTH_SIZE__PITCH_TILE_MAX_shift,
EG_DB_DEPTH_SIZE__PITCH_TILE_MAX_mask);