summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-03-09 20:53:41 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-03-09 20:53:41 +0100
commit4a0df7c4610b8a9000a970ff4492894f756eaee3 (patch)
treecfac048894d2d46e53899d1d4039c906c9990f7d
parent472faa86b294e88a177a3a7c127368376d42958f (diff)
st/dri: Add dri_screen to DRIimage
-rw-r--r--src/gallium/state_trackers/dri/common/dri_screen.h1
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h
index 8cb0a102c8..91802d3752 100644
--- a/src/gallium/state_trackers/dri/common/dri_screen.h
+++ b/src/gallium/state_trackers/dri/common/dri_screen.h
@@ -83,6 +83,7 @@ dri_screen(__DRIscreen * sPriv)
struct __DRIimageRec {
struct pipe_resource *texture;
+ struct dri_screen *screen;
unsigned level;
unsigned layer;
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index a5c94b4166..114861fdd2 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -451,6 +451,7 @@ dri2_create_image_from_name(__DRIscreen *_screen,
img->level = 0;
img->layer = 0;
+ img->screen = screen;
img->loader_private = loaderPrivate;
return img;
@@ -522,6 +523,7 @@ dri2_create_image(__DRIscreen *_screen,
img->level = 0;
img->layer = 0;
+ img->screen = screen;
img->loader_private = loaderPrivate;
return img;
}