intel: Drop other checks for old loader version.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2012-07-04 10:52:35 -07:00 committed by Chad Versace
parent 1b4374d364
commit 2b311fd802
1 changed files with 28 additions and 40 deletions

View File

@ -216,9 +216,7 @@ intel_flush_front(struct gl_context *ctx)
__DRIscreen *const screen = intel->intelScreen->driScrnPriv;
if (_mesa_is_winsys_fbo(ctx->DrawBuffer) && intel->front_buffer_dirty) {
if (screen->dri2.loader &&
(screen->dri2.loader->base.version >= 2)
&& (screen->dri2.loader->flushFrontBuffer != NULL) &&
if (screen->dri2.loader->flushFrontBuffer != NULL &&
driContext->driDrawablePriv &&
driContext->driDrawablePriv->loaderPrivate) {
(*screen->dri2.loader->flushFrontBuffer)(driContext->driDrawablePriv,
@ -835,11 +833,6 @@ intel_query_dri2_buffers(struct intel_context *intel,
{
__DRIscreen *screen = intel->intelScreen->driScrnPriv;
struct gl_framebuffer *fb = drawable->driverPrivate;
if (screen->dri2.loader
&& screen->dri2.loader->base.version > 2
&& screen->dri2.loader->getBuffersWithFormat != NULL) {
int i = 0;
const int max_attachments = 4;
unsigned *attachments = calloc(2 * max_attachments, sizeof(unsigned));
@ -871,11 +864,6 @@ intel_query_dri2_buffers(struct intel_context *intel,
buffer_count,
drawable->loaderPrivate);
free(attachments);
} else {
*buffers = NULL;
*buffer_count = 0;
}
}
/**