r600g: just change tile type when buffer is set to depth.
Not 100% sure on this one, but this is how it should work, the question is whether it will uncover other bugs elsewhere.
This commit is contained in:
@@ -721,10 +721,7 @@ static void evergreen_db(struct r600_pipe_context *rctx, struct r600_pipe_state
|
||||
|
||||
surf = (struct r600_surface *)state->zsbuf;
|
||||
rtex = (struct r600_resource_texture*)state->zsbuf->texture;
|
||||
rtex->tiled = 1;
|
||||
rtex->array_mode[level] = 2;
|
||||
rtex->tile_type = 1;
|
||||
rtex->depth = 1;
|
||||
rbuffer = &rtex->resource;
|
||||
|
||||
/* XXX quite sure for dx10+ hw don't need any offset hacks */
|
||||
|
||||
@@ -759,10 +759,9 @@ static void r600_db(struct r600_pipe_context *rctx, struct r600_pipe_state *rsta
|
||||
|
||||
surf = (struct r600_surface *)state->zsbuf;
|
||||
rtex = (struct r600_resource_texture*)state->zsbuf->texture;
|
||||
rtex->tiled = 1;
|
||||
rtex->array_mode[level] = 2;
|
||||
|
||||
rtex->tile_type = 1;
|
||||
rtex->depth = 1;
|
||||
|
||||
rbuffer = &rtex->resource;
|
||||
|
||||
/* XXX quite sure for dx10+ hw don't need any offset hacks */
|
||||
|
||||
Reference in New Issue
Block a user