Lines Matching defs:surf
812 struct NineSurface9 *surf = NineSurface9(pCursorBitmap);
823 user_assert(surf->desc.Format == D3DFMT_A8R8G8B8, D3DERR_INVALIDCALL);
826 This->cursor.w = MIN2(surf->desc.Width, 32);
827 This->cursor.h = MIN2(surf->desc.Height, 32);
830 This->cursor.w = MIN2(surf->desc.Width, This->cursor.image->width0);
831 This->cursor.h = MIN2(surf->desc.Height, This->cursor.image->height0);
852 hr = NineSurface9_LockRect(surf, &lock, NULL, D3DLOCK_READONLY);
857 util_format_unpack_rgba_8unorm_rect(surf->base.info.format, ptr, transfer->stride,
865 util_format_unpack_rgba_8unorm_rect(surf->base.info.format,
877 NineSurface9_UnlockRect(surf);
1886 struct NineSurface9 *surf = NineSurface9(pSurface);
1897 user_assert(surf->base.pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL);
1899 user_assert((surf->base.usage & D3DUSAGE_RENDERTARGET) ||
1900 NineSurface9_IsOffscreenPlain(surf), D3DERR_INVALIDCALL);
1902 user_assert(surf->desc.Format != D3DFMT_NULL, D3D_OK);
1910 if (compressed_format(surf->desc.Format)) {
1911 const unsigned bw = util_format_get_blockwidth(surf->base.info.format);
1912 const unsigned bh = util_format_get_blockheight(surf->base.info.format);
1920 w = surf->desc.Width;
1921 h = surf->desc.Height;
1924 if (surf->base.info.bind & PIPE_BIND_RENDER_TARGET) {
1925 nine_context_clear_render_target(This, surf, color, x, y, w, h);
1931 hr = NineSurface9_LockRect(surf, &lock, NULL, pRect ? 0 : D3DLOCK_DISCARD);
1935 surf->base.info.format, &uc);
1936 util_fill_rect(lock.pBits, surf->base.info.format,lock.Pitch,
1938 NineSurface9_UnlockRect(surf);