Lines Matching refs:res_create
215 struct drm_virtgpu_resource_create res_create; in createColorBuffer() local
216 memset(&res_create, 0, sizeof(res_create)); in createColorBuffer()
217 res_create.target = kPipeTexture2D; in createColorBuffer()
218 res_create.format = virtgpu_format; in createColorBuffer()
219 res_create.bind = kBindRenderTarget; in createColorBuffer()
220 res_create.width = width; in createColorBuffer()
221 res_create.height = height; in createColorBuffer()
222 res_create.depth = 1; in createColorBuffer()
223 res_create.array_size = 1; in createColorBuffer()
224 res_create.last_level = 0; in createColorBuffer()
225 res_create.nr_samples = 0; in createColorBuffer()
226 res_create.stride = bpp * width; in createColorBuffer()
227 res_create.size = align_up(bpp * width * height, PAGE_SIZE); in createColorBuffer()
229 int ret = drmIoctl(m_fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &res_create); in createColorBuffer()
236 return res_create.res_handle; in createColorBuffer()