Lines Matching defs:rscreen
68 static int r600_init_surface(struct r600_screen *rscreen,
90 if (rscreen->chip_class >= EVERGREEN &&
165 struct r600_screen *rscreen = (struct r600_screen*)screen;
169 r = rscreen->ws->surface_init(rscreen->ws, &rtex->surface);
212 struct r600_screen *rscreen = (struct r600_screen*)screen;
214 rscreen->ws->buffer_set_tiling(resource->buf,
226 return rscreen->ws->buffer_get_handle(resource->buf,
256 void r600_texture_get_fmask_info(struct r600_screen *rscreen,
288 if (rscreen->chip_class <= R700) {
292 if (rscreen->chip_class >= EVERGREEN) {
296 if (rscreen->ws->surface_init(rscreen->ws, &fmask)) {
307 static void r600_texture_allocate_fmask(struct r600_screen *rscreen,
312 r600_texture_get_fmask_info(rscreen, rtex,
326 void r600_texture_get_cmask_info(struct r600_screen *rscreen,
335 unsigned num_pipes = rscreen->tiling_info.num_channels;
336 unsigned pipe_interleave_bytes = rscreen->tiling_info.group_bytes;
359 static void r600_texture_allocate_cmask(struct r600_screen *rscreen,
364 r600_texture_get_cmask_info(rscreen, rtex, &cmask);
388 struct r600_screen *rscreen = (struct r600_screen*)screen;
414 r600_texture_allocate_cmask(rscreen, rtex);
415 r600_texture_allocate_fmask(rscreen, rtex);
429 if (!r600_init_resource(rscreen, resource, rtex->size, base_align, base->bind, usage)) {
435 resource->cs_buf = rscreen->ws->buffer_get_cs_handle(buf);
441 char *ptr = rscreen->ws->buffer_map(resource->cs_buf, NULL, PIPE_TRANSFER_WRITE);
443 rscreen->ws->buffer_unmap(resource->cs_buf);
451 struct r600_screen *rscreen = (struct r600_screen*)screen;
472 r = r600_init_surface(rscreen, &surface, templ, array_mode,
478 r = rscreen->ws->surface_best(rscreen->ws, &surface);
522 struct r600_screen *rscreen = (struct r600_screen*)screen;
535 buf = rscreen->ws->buffer_from_handle(rscreen->ws, whandle, &stride);
539 rscreen->ws->buffer_get_tiling(buf, µ, ¯o,
552 r = r600_init_surface(rscreen, &surface, templ, array_mode, false, false);
917 struct r600_screen *rscreen = (struct r600_screen *)screen;
918 if (rscreen->info.drm_minor >= 9)