mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radeong: Call softpipe_create directly.
Allows us to finally remove radeon_winsys_softpipe.
This commit is contained in:
parent
d8d8b0d244
commit
e3a3ca097c
6 changed files with 4 additions and 90 deletions
|
|
@ -7,8 +7,7 @@ LIBNAME = radeonwinsys
|
|||
C_SOURCES = \
|
||||
radeon_buffer.c \
|
||||
radeon_drm.c \
|
||||
radeon_r300.c \
|
||||
radeon_winsys_softpipe.c
|
||||
radeon_r300.c
|
||||
|
||||
LIBRARY_INCLUDES = -I$(TOP)/src/gallium/drivers/r300 \
|
||||
$(shell pkg-config libdrm --cflags-only-I)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ radeon_sources = [
|
|||
'radeon_buffer.c',
|
||||
'radeon_drm.c',
|
||||
'radeon_r300.c',
|
||||
'radeon_winsys_softpipe.c',
|
||||
]
|
||||
|
||||
env.Append(CPPPATH = '#/src/gallium/drivers/r300')
|
||||
|
|
|
|||
|
|
@ -29,6 +29,8 @@
|
|||
* Joakim Sindholt <opensource@zhasha.com>
|
||||
*/
|
||||
|
||||
#include "softpipe/sp_winsys.h"
|
||||
|
||||
#include "radeon_drm.h"
|
||||
|
||||
/* Helper function to do the ioctls needed for setup and init. */
|
||||
|
|
@ -123,7 +125,7 @@ struct pipe_context* radeon_create_context(struct drm_api* api,
|
|||
struct pipe_screen* screen)
|
||||
{
|
||||
if (debug_get_bool_option("RADEON_SOFTPIPE", FALSE)) {
|
||||
return radeon_create_softpipe(screen->winsys);
|
||||
return softpipe_create(screen);
|
||||
} else {
|
||||
return r300_create_context(screen,
|
||||
(struct radeon_winsys*)screen->winsys);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
|
||||
#include "radeon_buffer.h"
|
||||
#include "radeon_r300.h"
|
||||
#include "radeon_winsys_softpipe.h"
|
||||
|
||||
/* XXX */
|
||||
#include "r300_screen.h"
|
||||
|
|
|
|||
|
|
@ -1,41 +0,0 @@
|
|||
/**************************************************************************
|
||||
*
|
||||
* Copyright 2006 Tungsten Graphics, Inc., Bismarck, ND., USA
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
|
||||
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*
|
||||
*
|
||||
**************************************************************************/
|
||||
/*
|
||||
* Authors: Keith Whitwell <keithw-at-tungstengraphics-dot-com>
|
||||
*/
|
||||
|
||||
#include "radeon_winsys_softpipe.h"
|
||||
|
||||
struct pipe_context *radeon_create_softpipe(struct pipe_winsys* winsys)
|
||||
{
|
||||
struct pipe_screen *pipe_screen;
|
||||
|
||||
pipe_screen = softpipe_create_screen(winsys);
|
||||
|
||||
return softpipe_create(pipe_screen);
|
||||
}
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* Copyright © 2008 Jérôme Glisse
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
* "Software"), to deal in the Software without restriction, including
|
||||
* without limitation the rights to use, copy, modify, merge, publish,
|
||||
* distribute, sub license, and/or sell copies of the Software, and to
|
||||
* permit persons to whom the Software is furnished to do so, subject to
|
||||
* the following conditions:
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
* NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS
|
||||
* AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||||
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the
|
||||
* next paragraph) shall be included in all copies or substantial portions
|
||||
* of the Software.
|
||||
*/
|
||||
/*
|
||||
* Authors:
|
||||
* Jérôme Glisse <glisse@freedesktop.org>
|
||||
*/
|
||||
#ifndef RADEON_WINSYS_SOFTPIPE_H
|
||||
#define RADEON_WINSYS_SOFTPIPE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "pipe/p_defines.h"
|
||||
#include "pipe/p_format.h"
|
||||
|
||||
#include "softpipe/sp_winsys.h"
|
||||
|
||||
#include "util/u_memory.h"
|
||||
|
||||
struct pipe_context *radeon_create_softpipe(struct pipe_winsys* winsys);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue