mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 03:00:23 +01:00
gallium: fix get/put typo regression
This came from commit f3aa4de034 on 1/22/08.
Fixes strange Z buffer glitches seen in progs/glsl/texdemo1.c
This commit is contained in:
parent
7978c749fb
commit
6c59de9a7b
1 changed files with 5 additions and 5 deletions
|
|
@ -415,8 +415,8 @@ sp_get_cached_tile(struct softpipe_context *softpipe,
|
|||
/* put dirty tile back in framebuffer */
|
||||
if (tc->depth_stencil) {
|
||||
pipe_put_tile_raw(pipe, ps,
|
||||
tile->x, tile->y, TILE_SIZE, TILE_SIZE,
|
||||
tile->data.depth32, 0/*STRIDE*/);
|
||||
tile->x, tile->y, TILE_SIZE, TILE_SIZE,
|
||||
tile->data.depth32, 0/*STRIDE*/);
|
||||
}
|
||||
else {
|
||||
pipe_put_tile_rgba(pipe, ps,
|
||||
|
|
@ -441,9 +441,9 @@ sp_get_cached_tile(struct softpipe_context *softpipe,
|
|||
else {
|
||||
/* get new tile data from surface */
|
||||
if (tc->depth_stencil) {
|
||||
pipe_put_tile_raw(pipe, ps,
|
||||
tile->x, tile->y, TILE_SIZE, TILE_SIZE,
|
||||
tile->data.depth32, 0/*STRIDE*/);
|
||||
pipe_get_tile_raw(pipe, ps,
|
||||
tile->x, tile->y, TILE_SIZE, TILE_SIZE,
|
||||
tile->data.depth32, 0/*STRIDE*/);
|
||||
}
|
||||
else {
|
||||
pipe_get_tile_rgba(pipe, ps,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue