Lines Matching refs:drawable

116 drisw_update_drawable_info(struct dri_drawable *drawable)  in drisw_update_drawable_info()  argument
118 __DRIdrawable *dPriv = drawable->dPriv; in drisw_update_drawable_info()
125 drisw_get_image(struct dri_drawable *drawable, in drisw_get_image() argument
129 __DRIdrawable *dPriv = drawable->dPriv; in drisw_get_image()
137 drisw_put_image(struct dri_drawable *drawable, in drisw_put_image() argument
140 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image()
146 drisw_put_image2(struct dri_drawable *drawable, in drisw_put_image2() argument
150 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image2()
159 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_present_texture() local
160 struct dri_screen *screen = dri_screen(drawable->sPriv); in drisw_present_texture()
165 screen->base.screen->flush_frontbuffer(screen->base.screen, ptex, 0, 0, drawable, sub_box); in drisw_present_texture()
171 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_invalidate_drawable() local
173 drawable->texture_stamp = dPriv->lastStamp - 1; in drisw_invalidate_drawable()
175 p_atomic_inc(&drawable->base.stamp); in drisw_invalidate_drawable()
195 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_swap_buffers() local
201 ptex = drawable->textures[ST_ATTACHMENT_BACK_LEFT]; in drisw_swap_buffers()
205 pp_run(ctx->pp, ptex, ptex, drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]); in drisw_swap_buffers()
218 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_copy_sub_buffer() local
224 ptex = drawable->textures[ST_ATTACHMENT_BACK_LEFT]; in drisw_copy_sub_buffer()
227 if (ctx->pp && drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]) in drisw_copy_sub_buffer()
228 pp_run(ctx->pp, ptex, ptex, drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]); in drisw_copy_sub_buffer()
239 struct dri_drawable *drawable, in drisw_flush_frontbuffer() argument
247 ptex = drawable->textures[statt]; in drisw_flush_frontbuffer()
263 struct dri_drawable *drawable, in drisw_allocate_textures() argument
267 struct dri_screen *screen = dri_screen(drawable->sPriv); in drisw_allocate_textures()
268 const __DRIswrastLoaderExtension *loader = drawable->dPriv->driScreenPriv->swrast_loader; in drisw_allocate_textures()
274 width = drawable->dPriv->w; in drisw_allocate_textures()
275 height = drawable->dPriv->h; in drisw_allocate_textures()
277 resized = (drawable->old_w != width || in drisw_allocate_textures()
278 drawable->old_h != height); in drisw_allocate_textures()
283 pipe_resource_reference(&drawable->textures[i], NULL); in drisw_allocate_textures()
299 if (drawable->textures[statts[i]]) in drisw_allocate_textures()
302 dri_drawable_get_format(drawable, statts[i], &format, &bind); in drisw_allocate_textures()
317 drawable->textures[statts[i]] = in drisw_allocate_textures()
318 … screen->base.screen->resource_create_front(screen->base.screen, &templ, (const void *)drawable); in drisw_allocate_textures()
320 drawable->textures[statts[i]] = in drisw_allocate_textures()
324 drawable->old_w = width; in drisw_allocate_textures()
325 drawable->old_h = height; in drisw_allocate_textures()
329 drisw_update_tex_buffer(struct dri_drawable *drawable, in drisw_update_tex_buffer() argument
333 __DRIdrawable *dPriv = drawable->dPriv; in drisw_update_tex_buffer()
442 struct dri_drawable *drawable = NULL; in drisw_create_buffer() local
447 drawable = dPriv->driverPrivate; in drisw_create_buffer()
449 drawable->allocate_textures = drisw_allocate_textures; in drisw_create_buffer()
450 drawable->update_drawable_info = drisw_update_drawable_info; in drisw_create_buffer()
451 drawable->flush_frontbuffer = drisw_flush_frontbuffer; in drisw_create_buffer()
452 drawable->update_tex_buffer = drisw_update_tex_buffer; in drisw_create_buffer()