• Home
  • Raw
  • Download

Lines Matching refs:ptex

158                            const struct pipe_resource *ptex, enum radeon_surf_mode array_mode,  in si_init_surface()  argument
162 const struct util_format_description *desc = util_format_description(ptex->format); in si_init_surface()
171 if (!is_flushed_depth && ptex->format == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT) { in si_init_surface()
174 bpe = util_format_get_blocksize(ptex->format); in si_init_surface()
182 (ptex->bind & PIPE_BIND_SHARED) || is_imported) { in si_init_surface()
204 if (ptex->flags & SI_RESOURCE_FLAG_DISABLE_DCC) in si_init_surface()
207 if (ptex->nr_samples >= 2 && sscreen->debug_flags & DBG(NO_DCC_MSAA)) in si_init_surface()
215 (ptex->bind & PIPE_BIND_SCANOUT && sscreen->debug_flags & DBG(NO_DISPLAY_DCC)))) in si_init_surface()
220 ptex->format == PIPE_FORMAT_R9G9B9E5_FLOAT) in si_init_surface()
226 if (sscreen->info.family == CHIP_STONEY && bpe == 16 && ptex->nr_samples >= 2) in si_init_surface()
230 if (ptex->nr_storage_samples >= 4 && ptex->array_size > 1) in si_init_surface()
240 if (sscreen->info.family == CHIP_RAVEN && ptex->nr_storage_samples >= 2 && bpe < 4) in si_init_surface()
247 if (ptex->nr_storage_samples >= 2) in si_init_surface()
258 assert(ptex->nr_samples <= 1 && ptex->array_size == 1 && ptex->depth0 == 1 && in si_init_surface()
259 ptex->last_level == 0 && !(flags & RADEON_SURF_Z_OR_SBUFFER)); in si_init_surface()
264 if (ptex->bind & PIPE_BIND_SHARED) in si_init_surface()
271 if (sscreen->info.chip_class == GFX9 && (ptex->flags & SI_RESOURCE_FLAG_FORCE_MICRO_TILE_MODE)) { in si_init_surface()
273 surface->micro_tile_mode = SI_RESOURCE_FLAG_MICRO_TILE_MODE_GET(ptex->flags); in si_init_surface()
276 if (ptex->flags & SI_RESOURCE_FLAG_FORCE_MSAA_TILING) { in si_init_surface()
285 r = sscreen->ws->surface_init(sscreen->ws, ptex, flags, bpe, array_mode, surface); in si_init_surface()
1521 struct si_auxiliary_texture *ptex = (struct si_auxiliary_texture *)next_plane; in si_texture_from_winsys_buffer() local
1522 if (plane >= nplanes || ptex->buffer != tex->buffer.buf || in si_texture_from_winsys_buffer()
1523 ptex->offset != ac_surface_get_plane_offset(sscreen->info.chip_class, in si_texture_from_winsys_buffer()
1525 ptex->stride != ac_surface_get_plane_stride(sscreen->info.chip_class, in si_texture_from_winsys_buffer()