[cairo] [PATCH 1/3] DRM/Gallium3D: Catch up with changes in APIs.
Igor Oliveira
itrindade.oliveira at gmail.com
Sun May 30 12:14:43 PDT 2010
---
src/drm/cairo-drm-gallium-surface.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/drm/cairo-drm-gallium-surface.c b/src/drm/cairo-drm-gallium-surface.c
index 76fbae6..24ead1f 100644
--- a/src/drm/cairo-drm-gallium-surface.c
+++ b/src/drm/cairo-drm-gallium-surface.c
@@ -127,6 +127,7 @@ format_is_supported_destination (gallium_device_t *device,
return device->screen->is_format_supported (device->screen,
format,
+ PIPE_TEXTURE_2D,
0,
PIPE_BIND_RENDER_TARGET,
0);
@@ -139,6 +140,7 @@ format_is_supported_source (gallium_device_t *device,
{
return device->screen->is_format_supported (device->screen,
format,
+ PIPE_TEXTURE_2D,
0,
PIPE_BIND_SAMPLER_VIEW,
0);
@@ -787,7 +789,7 @@ _cairo_drm_gallium_device_create (int fd, dev_t dev, int vendor_id, int chip_id)
goto CLEANUP;
}
- device->screen = device->api->create_screen (device->api, fd, NULL);
+ device->screen = device->api->create_screen (device->api, fd);
if (device->screen == NULL) {
status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
goto CLEANUP_API;
--
1.6.3.3
More information about the cairo
mailing list