Lines Matching defs:psb_surface
53 #include "psb_surface.h"
598 psb_surface_sync(obj_surface->psb_surface);
599 psb_surface_destroy(obj_surface->psb_surface);
609 free(obj_surface->psb_surface);
881 psb_surface_p psb_surface;
902 psb_surface = (psb_surface_p) calloc(1, sizeof(struct psb_surface_s));
903 if (NULL == psb_surface) {
926 flags, psb_surface);
929 free(psb_surface);
935 buffer_stride = psb_surface->stride;
937 psb_surface->extra_info[4] = fourcc;
938 psb_surface->extra_info[8] = fourcc;
939 obj_surface->psb_surface = psb_surface;
1190 psb_surface_p psb_surface;
1201 psb_surface = obj_surface->psb_surface;
1207 if (GET_SURFACE_INFO_tiling(psb_surface)) {
1223 ((psb_surface->buf.pl_flags & DRM_PSB_FLAG_MEM_RAR) == 0)) /* surface not in RAR */
1224 psb_buffer_setstatus(&obj_surface->psb_surface->buf,
2186 if (GET_SURFACE_INFO_tiling(obj_surface->psb_surface)) {
2235 if (driver_data->vpp_on && GET_SURFACE_INFO_tiling(obj_surface->psb_surface))
2259 SET_SURFACE_INFO_rotate(obj_surface->psb_surface, obj_context->msvdx_rotate);
2270 if (driver_data->vpp_on && GET_SURFACE_INFO_tiling(obj_surface->psb_surface)) {
2274 SET_SURFACE_INFO_rotate(obj_surface->psb_surface, 0);
2297 if (driver_data->is_oold && !obj_surface->psb_surface->in_loop_buf) {
2298 psb_surface_p psb_surface = obj_surface->psb_surface;
2300 psb_surface->in_loop_buf = calloc(1, sizeof(struct psb_buffer_s));
2301 CHECK_ALLOCATION(psb_surface->in_loop_buf);
2305 psb_surface->size,
2307 psb_surface->in_loop_buf);
2308 psb_surface->in_loop_buf) {
2309 psb_surface_p psb_surface = obj_surface->psb_surface;
2311 psb_buffer_destroy(psb_surface->in_loop_buf);
2312 free(psb_surface->in_loop_buf);
2313 psb_surface->in_loop_buf = NULL;
2523 if (GET_SURFACE_INFO_tiling(obj_surface->psb_surface) &&
2528 vaStatus = psb_surface_sync(obj_surface->psb_surface);
2531 vaStatus = psb_surface_sync(obj_surface->psb_surface);
2540 handle = wsbmKBufHandle(wsbmKBuf(obj_surface->psb_surface->buf.drm_buf));
2561 //psb__dump_NV_buffers(obj_surface->psb_surface, 0, 0, obj_surface->width, obj_surface->height);
2596 if (GET_SURFACE_INFO_tiling(obj_surface->psb_surface) &&
2601 vaStatus = psb_surface_query_status(obj_surface->psb_surface, &surface_status);
2604 vaStatus = psb_surface_query_status(obj_surface->psb_surface, &surface_status);
2634 tng_surface_get_frameskip(driver_data, obj_surface->psb_surface, &frame_skip);
2637 pnw_surface_get_frameskip(driver_data, obj_surface->psb_surface, &frame_skip);
2648 if (obj_surface->psb_surface->buf.handle) {
2649 buffer_handle_t handle = obj_surface->psb_surface->buf.handle;
2709 handle = wsbmKBufHandle(wsbmKBuf(obj_surface->psb_surface->buf.drm_buf));
2858 psb_surface_p psb_surface;
2861 psb_surface = obj_surface->psb_surface;
2863 *buffer_name = (uint32_t)(wsbmKBufHandle(wsbmKBuf(psb_surface->buf.drm_buf)));
2867 ret = psb_buffer_map(&psb_surface->buf, &surface_data);
2874 srf_buf_ofs = psb_surface->buf.buffer_ofs;
2879 *luma_stride = psb_surface->stride;
2880 *chroma_u_stride = psb_surface->stride;
2881 *chroma_v_stride = psb_surface->stride;
2883 *chroma_u_offset = obj_surface->height * psb_surface->stride;
2884 *chroma_v_offset = obj_surface->height * psb_surface->stride + 1;
2902 psb_surface_p psb_surface = obj_surface->psb_surface;
2904 psb_buffer_unmap(&psb_surface->buf);
2923 psb_surface_p psb_surface = obj_surface->psb_surface;
2924 *buffer = (unsigned char *)psb_surface->bc_buffer;
2951 psb_surface_p psb_surface;
2957 psb_surface = obj_surface->psb_surface;
2962 psb_surface->stride, psb_surface->buf.drm_buf,
2963 psb_surface->buf.pl_flags, 1 /* wrap dst */);