Lines Matching refs:vlsurface
50 vlVdpBitmapSurface *vlsurface = NULL; in vlVdpBitmapSurfaceCreate() local
66 vlsurface = CALLOC(1, sizeof(vlVdpBitmapSurface)); in vlVdpBitmapSurfaceCreate()
67 if (!vlsurface) in vlVdpBitmapSurfaceCreate()
70 DeviceReference(&vlsurface->device, dev); in vlVdpBitmapSurfaceCreate()
96 vlsurface->sampler_view = pipe->create_sampler_view(pipe, res, &sv_templ); in vlVdpBitmapSurfaceCreate()
100 if (!vlsurface->sampler_view) { in vlVdpBitmapSurfaceCreate()
107 *surface = vlAddDataHTAB(vlsurface); in vlVdpBitmapSurfaceCreate()
117 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpBitmapSurfaceCreate()
120 DeviceReference(&vlsurface->device, NULL); in vlVdpBitmapSurfaceCreate()
121 FREE(vlsurface); in vlVdpBitmapSurfaceCreate()
131 vlVdpBitmapSurface *vlsurface; in vlVdpBitmapSurfaceDestroy() local
133 vlsurface = vlGetDataHTAB(surface); in vlVdpBitmapSurfaceDestroy()
134 if (!vlsurface) in vlVdpBitmapSurfaceDestroy()
137 mtx_lock(&vlsurface->device->mutex); in vlVdpBitmapSurfaceDestroy()
138 pipe_sampler_view_reference(&vlsurface->sampler_view, NULL); in vlVdpBitmapSurfaceDestroy()
139 mtx_unlock(&vlsurface->device->mutex); in vlVdpBitmapSurfaceDestroy()
142 DeviceReference(&vlsurface->device, NULL); in vlVdpBitmapSurfaceDestroy()
143 FREE(vlsurface); in vlVdpBitmapSurfaceDestroy()
157 vlVdpBitmapSurface *vlsurface; in vlVdpBitmapSurfaceGetParameters() local
160 vlsurface = vlGetDataHTAB(surface); in vlVdpBitmapSurfaceGetParameters()
161 if (!vlsurface) in vlVdpBitmapSurfaceGetParameters()
167 res = vlsurface->sampler_view->texture; in vlVdpBitmapSurfaceGetParameters()
186 vlVdpBitmapSurface *vlsurface; in vlVdpBitmapSurfacePutBitsNative() local
190 vlsurface = vlGetDataHTAB(surface); in vlVdpBitmapSurfacePutBitsNative()
191 if (!vlsurface) in vlVdpBitmapSurfacePutBitsNative()
197 pipe = vlsurface->device->context; in vlVdpBitmapSurfacePutBitsNative()
199 mtx_lock(&vlsurface->device->mutex); in vlVdpBitmapSurfacePutBitsNative()
201 dst_box = RectToPipeBox(destination_rect, vlsurface->sampler_view->texture); in vlVdpBitmapSurfacePutBitsNative()
202 pipe->texture_subdata(pipe, vlsurface->sampler_view->texture, 0, in vlVdpBitmapSurfacePutBitsNative()
206 mtx_unlock(&vlsurface->device->mutex); in vlVdpBitmapSurfacePutBitsNative()