aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2013-01-11 23:19:11 +0000
committerDave Airlie <[email protected]>2013-01-11 23:19:11 +0000
commit5039ad6bc5cec5c49f01380aa270248aae77811e (patch)
treed78a7d7ca715959abcb61e91e314b8fffeae76f1 /src/gallium/drivers/r600/r600_state.c
parentd23aa650015ec017649f5a4ce8cb12d8c314bd3a (diff)
r600g: fix warnings for htile va
This fixes a warning about mismatched types. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r--src/gallium/drivers/r600/r600_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 17c5a64e9e7..3ec21d20ef8 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -1486,7 +1486,7 @@ static void r600_init_depth_surface(struct r600_context *rctx,
surf->htile_enabled = 0;
/* use htile only for first level */
if (rtex->htile && !level) {
- uint64_t va = r600_resource_va(rctx->screen, rtex->htile);
+ uint64_t va = r600_resource_va(&rctx->screen->screen, &rtex->htile->b.b);
surf->htile_enabled = 1;
surf->db_htile_data_base = va >> 8;
surf->db_htile_surface = S_028D24_HTILE_WIDTH(1) |