summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/dri_screen.h
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-07-22 16:34:15 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-22 16:35:25 +0100
commit72c784347bf66b61385cb57bb666033e5234ba69 (patch)
treef9b8e440f01ae56a94ef2c3e48814d1f1a8cebc8 /src/gallium/state_trackers/dri/dri_screen.h
parent0efd773f719dd2deddb4b6703edf022b294cd349 (diff)
downloadexternal_mesa3d-72c784347bf66b61385cb57bb666033e5234ba69.zip
external_mesa3d-72c784347bf66b61385cb57bb666033e5234ba69.tar.gz
external_mesa3d-72c784347bf66b61385cb57bb666033e5234ba69.tar.bz2
st/dri: unwrap/remove __NOT_HAVE_DRM_H magic
With the dri_interface.h clean of the macro, we can remove the final only st/dri specific use of the very same. Seemingly it was incorrectly used, as the build-time presence of dri2 is not libdrm specific. At run-time, the code is already limited to dri2 use-cases plus returning true, when the extension is not present (or too old) will likely lead to a crash as one tries to use it shortly after the dri_with_format() call. As a side effect this gives us a nice cleanup the builds. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'src/gallium/state_trackers/dri/dri_screen.h')
-rw-r--r--src/gallium/state_trackers/dri/dri_screen.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.h b/src/gallium/state_trackers/dri/dri_screen.h
index 6d46fea..4bcb029 100644
--- a/src/gallium/state_trackers/dri/dri_screen.h
+++ b/src/gallium/state_trackers/dri/dri_screen.h
@@ -122,8 +122,6 @@ struct __DRIimageRec {
};
-#ifndef __NOT_HAVE_DRM_H
-
static inline boolean
dri_with_format(__DRIscreen * sPriv)
{
@@ -134,16 +132,6 @@ dri_with_format(__DRIscreen * sPriv)
&& (loader->getBuffersWithFormat != NULL);
}
-#else
-
-static inline boolean
-dri_with_format(__DRIscreen * sPriv)
-{
- return TRUE;
-}
-
-#endif
-
void
dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
const struct gl_config *mode);