Lines Matching refs:tmplt
184 struct pipe_resource *resource, tmplt; in NineSwapChain9_Resize() local
301 memset(&tmplt, 0, sizeof(tmplt)); in NineSwapChain9_Resize()
302 tmplt.target = PIPE_TEXTURE_2D; in NineSwapChain9_Resize()
303 tmplt.width0 = pParams->BackBufferWidth; in NineSwapChain9_Resize()
304 tmplt.height0 = pParams->BackBufferHeight; in NineSwapChain9_Resize()
305 tmplt.depth0 = 1; in NineSwapChain9_Resize()
306 tmplt.last_level = 0; in NineSwapChain9_Resize()
307 tmplt.array_size = 1; in NineSwapChain9_Resize()
308 tmplt.usage = PIPE_USAGE_DEFAULT; in NineSwapChain9_Resize()
309 tmplt.flags = 0; in NineSwapChain9_Resize()
354 tmplt.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; in NineSwapChain9_Resize()
355 tmplt.nr_samples = multisample_type; in NineSwapChain9_Resize()
356 tmplt.nr_storage_samples = multisample_type; in NineSwapChain9_Resize()
358 tmplt.bind |= NINE_BIND_PRESENTBUFFER_FLAGS; in NineSwapChain9_Resize()
359 tmplt.format = d3d9_to_pipe_format_checked(This->screen, in NineSwapChain9_Resize()
362 tmplt.nr_samples, in NineSwapChain9_Resize()
363 tmplt.bind, FALSE, FALSE); in NineSwapChain9_Resize()
364 if (tmplt.format == PIPE_FORMAT_NONE) in NineSwapChain9_Resize()
366 resource = nine_resource_create_with_retry(pDevice, This->screen, &tmplt); in NineSwapChain9_Resize()
392 tmplt.format = PIPE_FORMAT_B8G8R8X8_UNORM; in NineSwapChain9_Resize()
393 tmplt.bind = NINE_BIND_PRESENTBUFFER_FLAGS; in NineSwapChain9_Resize()
394 tmplt.nr_samples = 0; in NineSwapChain9_Resize()
395 tmplt.nr_storage_samples = 0; in NineSwapChain9_Resize()
397 tmplt.bind |= PIPE_BIND_LINEAR; in NineSwapChain9_Resize()
399 tmplt.bind |= PIPE_BIND_RENDER_TARGET; in NineSwapChain9_Resize()
400 resource = nine_resource_create_with_retry(pDevice, This->screen, &tmplt); in NineSwapChain9_Resize()
410 tmplt.bind = d3d9_get_pipe_depth_format_bindings(pParams->AutoDepthStencilFormat); in NineSwapChain9_Resize()
411 tmplt.nr_samples = multisample_type; in NineSwapChain9_Resize()
412 tmplt.nr_storage_samples = multisample_type; in NineSwapChain9_Resize()
413 tmplt.format = d3d9_to_pipe_format_checked(This->screen, in NineSwapChain9_Resize()
416 tmplt.nr_samples, in NineSwapChain9_Resize()
417 tmplt.bind, in NineSwapChain9_Resize()
420 if (tmplt.format == PIPE_FORMAT_NONE) in NineSwapChain9_Resize()
424 resource = nine_resource_create_with_retry(pDevice, This->screen, &tmplt); in NineSwapChain9_Resize()
592 struct pipe_resource tmplt; in create_present_buffer() local
594 memset(&tmplt, 0, sizeof(tmplt)); in create_present_buffer()
595 tmplt.target = PIPE_TEXTURE_2D; in create_present_buffer()
596 tmplt.width0 = width; in create_present_buffer()
597 tmplt.height0 = height; in create_present_buffer()
598 tmplt.depth0 = 1; in create_present_buffer()
599 tmplt.last_level = 0; in create_present_buffer()
600 tmplt.array_size = 1; in create_present_buffer()
601 tmplt.usage = PIPE_USAGE_DEFAULT; in create_present_buffer()
602 tmplt.flags = 0; in create_present_buffer()
603 tmplt.format = PIPE_FORMAT_B8G8R8X8_UNORM; in create_present_buffer()
604 tmplt.bind = NINE_BIND_BACKBUFFER_FLAGS | in create_present_buffer()
606 tmplt.nr_samples = 0; in create_present_buffer()
608 tmplt.bind |= PIPE_BIND_LINEAR; in create_present_buffer()
609 *resource = nine_resource_create_with_retry(This->base.device, This->screen, &tmplt); in create_present_buffer()