diff options
author | Eric Anholt <[email protected]> | 2012-07-04 10:52:34 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-07-17 08:18:04 -0700 |
commit | 1b4374d364f877d1b7d01e1231adeee2e0f63a4d (patch) | |
tree | 35a2126df18a4fa5b4cda0eb0e5db19c24796ca1 /src/mesa/drivers/dri/intel/intel_context.c | |
parent | 9bbf7c139bb02fe9fc3822bf2ca9ac5963d0d5af (diff) |
intel: Replace the non-getBuffersWithFormat compat path with an error message.
It's been broken (using NULL getBuffersWithFormat() instead of
getBuffers()) due to a copy and paste error for a year now.
GetBuffersWithFormat has been around since 2009, so I don't feel any
guilt in not supporting it.
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_context.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_context.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 60e93f0dc3e..39a9a858dc4 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -872,27 +872,6 @@ intel_query_dri2_buffers(struct intel_context *intel, drawable->loaderPrivate); free(attachments); - } else if (screen->dri2.loader) { - - int i = 0; - const int max_attachments = 4; - unsigned *attachments = calloc(max_attachments, sizeof(unsigned)); - - if (intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT)) - attachments[i++] = __DRI_BUFFER_FRONT_LEFT; - if (intel_get_renderbuffer(fb, BUFFER_BACK_LEFT)) - attachments[i++] = __DRI_BUFFER_BACK_LEFT; - - assert(i <= max_attachments); - - *buffers = screen->dri2.loader->getBuffersWithFormat(drawable, - &drawable->w, - &drawable->h, - attachments, i, - buffer_count, - drawable->loaderPrivate); - free(attachments); - } else { *buffers = NULL; *buffer_count = 0; |