diff options
author | Roland Scheidegger <[email protected]> | 2009-11-30 23:02:49 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2009-11-30 23:02:49 +0100 |
commit | decf6ed810eae473d043a4a399a5a84f1378a725 (patch) | |
tree | a2e46901a82a9e166d3416f27c755c7a4b7430ed /src/gallium/winsys/drm/nouveau | |
parent | ac400ffce62be47fc77e8d10cabcd39b92b6c627 (diff) |
fixups for interface changes (mostly state trackers)
Diffstat (limited to 'src/gallium/winsys/drm/nouveau')
-rw-r--r-- | src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c index d4978613247..8d95826c9a2 100644 --- a/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +++ b/src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c @@ -28,7 +28,6 @@ dri_surface_from_handle(struct drm_api *api, struct pipe_screen *pscreen, tmpl.format = format; tmpl.width0 = width; tmpl.height0 = height; - pf_get_block(tmpl.format, &tmpl.block); pt = api->texture_from_shared_handle(api, pscreen, &tmpl, "front buffer", pitch, handle); @@ -247,7 +246,7 @@ nouveau_drm_handle_from_pt(struct drm_api *api, struct pipe_screen *pscreen, return false; *handle = mt->bo->handle; - *stride = mt->base.nblocksx[0] * mt->base.block.size; + *stride = pf_get_stride(mt->base.format, mt->base.width0); return true; } |