mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
util: fix addressing bug in pipe_put_tile_z() for PIPE_FORMAT_Z32_FLOAT
The Z32 pixel is 4 bytes so multiply x by 4, not 2.
Note: This is a candidate for the stable branches.
(cherry picked from commit 69c2528b83)
This commit is contained in:
parent
3a39c3cb67
commit
af41a1d491
1 changed files with 1 additions and 1 deletions
|
|
@ -810,7 +810,7 @@ pipe_put_tile_z(struct pipe_context *pipe,
|
|||
break;
|
||||
case PIPE_FORMAT_Z32_FLOAT:
|
||||
{
|
||||
float *pDest = (float *) (map + y * pt->stride + x*2);
|
||||
float *pDest = (float *) (map + y * pt->stride + x*4);
|
||||
for (i = 0; i < h; i++) {
|
||||
for (j = 0; j < w; j++) {
|
||||
/* convert 32-bit integer Z to float Z */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue