mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
nv30: fix build
This commit is contained in:
parent
4c239ec2d7
commit
8d13f55d2c
2 changed files with 4 additions and 4 deletions
|
|
@ -95,7 +95,7 @@ nv30_fragtex_build(struct nv30_context *nv30, int unit)
|
|||
}
|
||||
|
||||
txf = tf->format << 8;
|
||||
txf |= (pt->last_level - pt->first_level + 1) << 16;
|
||||
txf |= (pt->last_level + 1) << 16;
|
||||
txf |= log2i(pt->width[0]) << 20;
|
||||
txf |= log2i(pt->height[0]) << 24;
|
||||
txf |= log2i(pt->depth[0]) << 28;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ nv30_miptree_layout(struct nv30_miptree *nv30mt)
|
|||
nr_faces = 1;
|
||||
}
|
||||
|
||||
for (l = pt->first_level; l <= pt->last_level; l++) {
|
||||
for (l = 0; l <= pt->last_level; l++) {
|
||||
pt->width[l] = width;
|
||||
pt->height[l] = height;
|
||||
pt->depth[l] = depth;
|
||||
|
|
@ -44,7 +44,7 @@ nv30_miptree_layout(struct nv30_miptree *nv30mt)
|
|||
}
|
||||
|
||||
for (f = 0; f < nr_faces; f++) {
|
||||
for (l = pt->first_level; l <= pt->last_level; l++) {
|
||||
for (l = 0; l <= pt->last_level; l++) {
|
||||
nv30mt->level[l].image_offset[f] = offset;
|
||||
offset += nv30mt->level[l].pitch * pt->height[l];
|
||||
}
|
||||
|
|
@ -88,7 +88,7 @@ nv30_miptree_release(struct pipe_context *pipe, struct pipe_texture **pt)
|
|||
int l;
|
||||
|
||||
pipe_buffer_reference(ws, &nv30mt->buffer, NULL);
|
||||
for (l = mt->first_level; l <= mt->last_level; l++) {
|
||||
for (l = 0; l <= mt->last_level; l++) {
|
||||
if (nv30mt->level[l].image_offset)
|
||||
free(nv30mt->level[l].image_offset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue