Gallium - remove DRI1 support
Compilation tested.
Signature · 2 lines
Jabber/XMPP: [email protected] SIP VoIP: sip:17474537254-rne+wJe3e/u3Jhga2bR/9VaTQe2KTcn/@public.gmane.org
From 61a3668e6a9af7c8952b3fab954323a78e433049 Mon Sep 17 00:00:00 2001
From: David Heidelberger <[email protected]>
Date: Mon, 18 Jan 2010 11:07:49 +0100
Subject: [PATCH] [nouveau] remove dri1 support
--- .../winsys/drm/nouveau/drm/nouveau_drm_api.c | 36 -------------------- .../winsys/drm/nouveau/drm/nouveau_drm_api.h | 1 - 2 files changed, 0 insertions(+), 37 deletions(-)
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c +0 -36
@@ -44,21 +44,10 @@ dri_surface_from_handle(struct drm_api *api, struct pipe_screen *pscreen,return ps; } -static struct pipe_surface * -nouveau_dri1_front_surface (struct pipe_context *pipe) -{ -return nouveau_winsys_screen (pipe->screen)->front; -} - -static struct dri1_api nouveau_dri1_api = { - nouveau_dri1_front_surface, -}; -static struct pipe_screen *nouveau_drm_create_screen (struct drm_api *api,int fd,struct drm_create_screen_arg *arg) { -struct dri1_create_screen_arg *dri1 = (void *)arg;struct nouveau_winsys *nvws;struct pipe_winsys *ws;struct nouveau_device *dev =NULL ;
@@ -112,31 +101,6 @@ nouveau_drm_create_screen(struct drm_api *api, int fd,return NULL ; } -if (arg && arg->mode ==DRM_CREATE_DRI1 ) { -struct nouveau_dri *nvdri = dri1->ddx_info; -enum pipe_format format; - -if (nvdri->bpp ==16 ) - format =PIPE_FORMAT_R5G6B5_UNORM ; -else - format =PIPE_FORMAT_A8R8G8B8_UNORM ; - - nvws->front =dri_surface_from_handle (api, nvws->pscreen, - nvdri->front_offset, - format, nvdri->width, - nvdri->height, - nvdri->front_pitch * - (nvdri->bpp /8 )); -if (!nvws->front) { -debug_printf ("%s: error referencing front buffer\n" , - __func__); - ws->destroy (ws); -return NULL ; - } - - dri1->api = &nouveau_dri1_api; - } -return nvws->pscreen; }
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.h +0 -1
@@ -2,7 +2,6 @@#define __NOUVEAU_DRM_API_H__#include "state_tracker/drm_api.h" -#include "state_tracker/dri1_api.h" #include "pipe/internal/p_winsys_screen.h"
Signature · 1 line
1.6.6
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): c2673ca61001180214q3d94bb87j5e38fa730139a562-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 3 lines · okias
Compilation tested.
--
I still use DRI1 :) Any reason to remove it if it still works and doesn't require much maintenance?
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): c2673ca61001181036k207b1371jc7d15a75406634-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 5 lines · okias
I read on Nouveau Wiki page, "Nouveau drops UMS support, huge clean-up in DDX. Roughly 15k lines were deleted from the DDX when the user mode-setting, DRI1 support (DRI2 is still there), ..."
so I just thought it's leftover.
Quoted 11 lines
David
2010/1/18 Younes Manton <[email protected]>:
Quoted 8 lines · okias
Quoted 3 lines
Compilation tested.
--
I still use DRI1 :) Any reason to remove it if it still works and doesn't require much maintenance?
I didn't realize DRI1 went away with UMS as well in the DDX. I have no problem with it then, I'll just keep those paths around in my private tree until I move to a newer xserver.