~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/frontends/nine/basetexture9.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    /* Mark the texture as dirty to trigger first upload when we need the texture,
75
75
     * even if it wasn't set by the application */
76
76
    if (Pool == D3DPOOL_MANAGED)
77
 
        This->managed.dirty = TRUE;
 
77
        This->managed.dirty = true;
78
78
    /* When a depth buffer is sampled, it is for shadow mapping, except for
79
79
     * D3DFMT_INTZ, D3DFMT_DF16 and D3DFMT_DF24.
80
80
     * In addition D3DFMT_INTZ can be used for both texturing and depth buffering
156
156
    user_assert(FilterType != D3DTEXF_NONE, D3DERR_INVALIDCALL);
157
157
 
158
158
    This->mipfilter = FilterType;
159
 
    This->dirty_mip = TRUE;
 
159
    This->dirty_mip = true;
160
160
    NineBaseTexture9_GenerateMipSubLevels(This);
161
161
 
162
162
    return D3D_OK;
204
204
        res = This->base.resource;
205
205
 
206
206
        if (This->managed.lod_resident == -1) {/* no levels were resident */
207
 
            This->managed.dirty = FALSE; /* We are going to upload everything. */
 
207
            This->managed.dirty = false; /* We are going to upload everything. */
208
208
            This->managed.lod_resident = This->level_count;
209
209
        }
210
210
 
309
309
        } else {
310
310
            assert(!"invalid texture type");
311
311
        }
312
 
        This->managed.dirty = FALSE;
 
312
        This->managed.dirty = false;
313
313
    }
314
314
 
315
315
    /* Upload the new levels */
359
359
    }
360
360
 
361
361
    if (This->base.usage & D3DUSAGE_AUTOGENMIPMAP)
362
 
        This->dirty_mip = TRUE;
 
362
        This->dirty_mip = true;
363
363
 
364
364
    /* Set again the textures currently bound to update the texture data */
365
365
    if (This->bind_count) {
405
405
                            base_level, last_level,
406
406
                            first_layer, last_layer, filter);
407
407
 
408
 
    This->dirty_mip = FALSE;
 
408
    This->dirty_mip = false;
409
409
}
410
410
 
411
411
HRESULT
598
598
    DBG("This=%p, releasing resource\n", This);
599
599
    pipe_resource_reference(&This->base.resource, NULL);
600
600
    This->managed.lod_resident = -1;
601
 
    This->managed.dirty = TRUE;
 
601
    This->managed.dirty = true;
602
602
 
603
603
    /* If the texture is bound, we have to re-upload it */
604
604
    BASETEX_REGISTER_UPDATE(This);