v3d: Rename the driver files from "vc5" to "v3d".
This commit is contained in:
@@ -3037,8 +3037,8 @@ AC_CONFIG_FILES([Makefile
|
||||
src/gallium/drivers/tegra/Makefile
|
||||
src/gallium/drivers/etnaviv/Makefile
|
||||
src/gallium/drivers/imx/Makefile
|
||||
src/gallium/drivers/v3d/Makefile
|
||||
src/gallium/drivers/vc4/Makefile
|
||||
src/gallium/drivers/vc5/Makefile
|
||||
src/gallium/drivers/virgl/Makefile
|
||||
src/gallium/state_trackers/clover/Makefile
|
||||
src/gallium/state_trackers/dri/Makefile
|
||||
@@ -3085,8 +3085,8 @@ AC_CONFIG_FILES([Makefile
|
||||
src/gallium/winsys/sw/wrapper/Makefile
|
||||
src/gallium/winsys/sw/xlib/Makefile
|
||||
src/gallium/winsys/tegra/drm/Makefile
|
||||
src/gallium/winsys/v3d/drm/Makefile
|
||||
src/gallium/winsys/vc4/drm/Makefile
|
||||
src/gallium/winsys/vc5/drm/Makefile
|
||||
src/gallium/winsys/virgl/drm/Makefile
|
||||
src/gallium/winsys/virgl/vtest/Makefile
|
||||
src/gbm/Makefile
|
||||
|
@@ -60,6 +60,6 @@ PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
|
||||
|
||||
include Makefile.genxml.am
|
||||
include Makefile.cle.am
|
||||
include Makefile.vc5.am
|
||||
include Makefile.v3d.am
|
||||
|
||||
CLEANFILES += $(BUILT_SOURCES)
|
||||
|
@@ -90,7 +90,7 @@ endif
|
||||
|
||||
## v3d
|
||||
if HAVE_GALLIUM_V3D
|
||||
SUBDIRS += drivers/vc5 winsys/vc5/drm
|
||||
SUBDIRS += drivers/v3d winsys/v3d/drm
|
||||
endif
|
||||
|
||||
## virgl
|
||||
|
@@ -311,7 +311,7 @@ pipe_vc4_create_screen(int fd, const struct pipe_screen_config *config)
|
||||
#endif
|
||||
|
||||
#ifdef GALLIUM_V3D
|
||||
#include "vc5/drm/vc5_drm_public.h"
|
||||
#include "v3d/drm/v3d_drm_public.h"
|
||||
|
||||
struct pipe_screen *
|
||||
pipe_v3d_create_screen(int fd, const struct pipe_screen_config *config)
|
||||
|
@@ -3,8 +3,8 @@ if HAVE_GALLIUM_V3D
|
||||
TARGET_DRIVERS += v3d
|
||||
TARGET_CPPFLAGS += -DGALLIUM_V3D
|
||||
TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/vc5/drm/libv3ddrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/vc5/libv3d.la \
|
||||
$(top_builddir)/src/gallium/winsys/v3d/drm/libv3ddrm.la \
|
||||
$(top_builddir)/src/gallium/drivers/v3d/libv3d.la \
|
||||
$(top_builddir)/src/broadcom/libbroadcom.la
|
||||
|
||||
if !HAVE_GALLIUM_VC4
|
36
src/gallium/drivers/v3d/Makefile.sources
Normal file
36
src/gallium/drivers/v3d/Makefile.sources
Normal file
@@ -0,0 +1,36 @@
|
||||
C_SOURCES := \
|
||||
v3d_blit.c \
|
||||
v3d_bufmgr.c \
|
||||
v3d_bufmgr.h \
|
||||
v3d_cl.c \
|
||||
v3d_cl.h \
|
||||
v3d_context.c \
|
||||
v3d_context.h \
|
||||
v3d_fence.c \
|
||||
v3d_formats.c \
|
||||
v3d_format_table.h \
|
||||
v3d_job.c \
|
||||
v3d_program.c \
|
||||
v3d_query.c \
|
||||
v3d_resource.c \
|
||||
v3d_resource.h \
|
||||
v3d_screen.c \
|
||||
v3d_screen.h \
|
||||
v3d_simulator.c \
|
||||
v3d_simulator_wrapper.cpp \
|
||||
v3d_simulator_wrapper.h \
|
||||
v3d_tiling.c \
|
||||
v3d_tiling.h \
|
||||
v3d_uniforms.c \
|
||||
$()
|
||||
|
||||
V3D_PER_VERSION_SOURCES = \
|
||||
v3dx_context.h \
|
||||
v3dx_draw.c \
|
||||
v3dx_emit.c \
|
||||
v3dx_format_table.c \
|
||||
v3dx_job.c \
|
||||
v3dx_rcl.c \
|
||||
v3dx_simulator.c \
|
||||
v3dx_state.c \
|
||||
$()
|
@@ -19,37 +19,37 @@
|
||||
# SOFTWARE.
|
||||
|
||||
files_libv3d = files(
|
||||
'vc5_blit.c',
|
||||
'vc5_bufmgr.c',
|
||||
'vc5_bufmgr.h',
|
||||
'vc5_cl.c',
|
||||
'vc5_cl.h',
|
||||
'vc5_context.c',
|
||||
'vc5_context.h',
|
||||
'vc5_fence.c',
|
||||
'vc5_formats.c',
|
||||
'vc5_job.c',
|
||||
'vc5_program.c',
|
||||
'vc5_query.c',
|
||||
'vc5_resource.c',
|
||||
'vc5_resource.h',
|
||||
'vc5_screen.c',
|
||||
'vc5_screen.h',
|
||||
'vc5_simulator.c',
|
||||
'vc5_simulator_wrapper.cpp',
|
||||
'vc5_tiling.c',
|
||||
'vc5_tiling.h',
|
||||
'vc5_uniforms.c',
|
||||
'v3d_blit.c',
|
||||
'v3d_bufmgr.c',
|
||||
'v3d_bufmgr.h',
|
||||
'v3d_cl.c',
|
||||
'v3d_cl.h',
|
||||
'v3d_context.c',
|
||||
'v3d_context.h',
|
||||
'v3d_fence.c',
|
||||
'v3d_formats.c',
|
||||
'v3d_job.c',
|
||||
'v3d_program.c',
|
||||
'v3d_query.c',
|
||||
'v3d_resource.c',
|
||||
'v3d_resource.h',
|
||||
'v3d_screen.c',
|
||||
'v3d_screen.h',
|
||||
'v3d_simulator.c',
|
||||
'v3d_simulator_wrapper.cpp',
|
||||
'v3d_tiling.c',
|
||||
'v3d_tiling.h',
|
||||
'v3d_uniforms.c',
|
||||
)
|
||||
|
||||
files_per_version = files(
|
||||
'v3dx_draw.c',
|
||||
'v3dx_emit.c',
|
||||
'v3dx_format_table.c',
|
||||
'v3dx_job.c',
|
||||
'v3dx_rcl.c',
|
||||
'v3dx_simulator.c',
|
||||
'vc5_draw.c',
|
||||
'vc5_emit.c',
|
||||
'vc5_rcl.c',
|
||||
'vc5_state.c',
|
||||
'v3dx_state.c',
|
||||
)
|
||||
|
||||
v3dv3_c_args = []
|
@@ -24,7 +24,7 @@
|
||||
#include "util/u_format.h"
|
||||
#include "util/u_surface.h"
|
||||
#include "util/u_blitter.h"
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
|
||||
#if 0
|
||||
static struct pipe_surface *
|
@@ -32,8 +32,8 @@
|
||||
#include "util/u_memory.h"
|
||||
#include "util/ralloc.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_screen.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_screen.h"
|
||||
|
||||
#ifdef HAVE_VALGRIND
|
||||
#include <valgrind.h>
|
@@ -28,7 +28,7 @@
|
||||
#include "util/u_hash_table.h"
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/list.h"
|
||||
#include "vc5_screen.h"
|
||||
#include "v3d_screen.h"
|
||||
|
||||
struct vc5_context;
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "util/u_math.h"
|
||||
#include "util/ralloc.h"
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
/* The branching packets are the same across V3D versions. */
|
||||
#define V3D_VERSION 33
|
||||
#include "broadcom/common/v3d_macros.h"
|
@@ -34,9 +34,9 @@
|
||||
#include "indices/u_primconvert.h"
|
||||
#include "pipe/p_screen.h"
|
||||
|
||||
#include "vc5_screen.h"
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_resource.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_resource.h"
|
||||
|
||||
void
|
||||
vc5_flush(struct pipe_context *pctx)
|
@@ -37,15 +37,15 @@
|
||||
#include "util/slab.h"
|
||||
#include "xf86drm.h"
|
||||
#include "v3d_drm.h"
|
||||
#include "vc5_screen.h"
|
||||
#include "v3d_screen.h"
|
||||
|
||||
struct vc5_job;
|
||||
struct vc5_bo;
|
||||
void vc5_job_add_bo(struct vc5_job *job, struct vc5_bo *bo);
|
||||
|
||||
#include "vc5_bufmgr.h"
|
||||
#include "vc5_resource.h"
|
||||
#include "vc5_cl.h"
|
||||
#include "v3d_bufmgr.h"
|
||||
#include "v3d_resource.h"
|
||||
#include "v3d_cl.h"
|
||||
|
||||
#ifdef USE_V3D_SIMULATOR
|
||||
#define using_vc5_simulator true
|
@@ -36,8 +36,8 @@
|
||||
|
||||
#include "util/u_inlines.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_bufmgr.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_bufmgr.h"
|
||||
|
||||
struct vc5_fence {
|
||||
struct pipe_reference reference;
|
@@ -34,8 +34,8 @@
|
||||
|
||||
#include "util/macros.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_format_table.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_format_table.h"
|
||||
|
||||
static const struct vc5_format *
|
||||
get_format(const struct v3d_device_info *devinfo, enum pipe_format f)
|
@@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <xf86drm.h>
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
/* The OQ/semaphore packets are the same across V3D versions. */
|
||||
#define V3D_VERSION 33
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
@@ -33,7 +33,7 @@
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
#include "nir/tgsi_to_nir.h"
|
||||
#include "compiler/v3d_compiler.h"
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
#include "broadcom/cle/v3d_packet_v33_pack.h"
|
||||
#include "mesa/state_tracker/st_glsl_types.h"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
* do the calculations in software at draw time.
|
||||
*/
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
#include "broadcom/cle/v3d_packet_v33_pack.h"
|
||||
|
||||
struct vc5_query
|
@@ -33,10 +33,10 @@
|
||||
#include "util/u_format_zs.h"
|
||||
|
||||
#include "drm_fourcc.h"
|
||||
#include "vc5_screen.h"
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_resource.h"
|
||||
#include "vc5_tiling.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_resource.h"
|
||||
#include "v3d_tiling.h"
|
||||
#include "broadcom/cle/v3d_packet_v33_pack.h"
|
||||
|
||||
static void
|
@@ -25,7 +25,7 @@
|
||||
#ifndef VC5_RESOURCE_H
|
||||
#define VC5_RESOURCE_H
|
||||
|
||||
#include "vc5_screen.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "util/u_transfer.h"
|
||||
|
||||
/* A UIFblock is a 256-byte region of memory that's 256-byte aligned. These
|
@@ -34,9 +34,9 @@
|
||||
#include "util/ralloc.h"
|
||||
|
||||
#include <xf86drm.h>
|
||||
#include "vc5_screen.h"
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_resource.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_resource.h"
|
||||
#include "compiler/v3d_compiler.h"
|
||||
|
||||
static const char *
|
@@ -54,10 +54,10 @@
|
||||
#include "util/set.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_mm.h"
|
||||
#include "vc5_simulator_wrapper.h"
|
||||
#include "v3d_simulator_wrapper.h"
|
||||
|
||||
#include "vc5_screen.h"
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "v3d_context.h"
|
||||
|
||||
/** Global (across GEM fds) state for the simulator */
|
||||
static struct vc5_simulator_state {
|
@@ -24,12 +24,12 @@
|
||||
/** @file
|
||||
*
|
||||
* Wraps bits of the V3D simulator interface in a C interface for the
|
||||
* vc5_simulator.c code to use.
|
||||
* v3d_simulator.c code to use.
|
||||
*/
|
||||
|
||||
#ifdef USE_V3D_SIMULATOR
|
||||
|
||||
#include "vc5_simulator_wrapper.h"
|
||||
#include "v3d_simulator_wrapper.h"
|
||||
|
||||
#define V3D_TECH_VERSION 3
|
||||
#define V3D_REVISION 3
|
@@ -28,9 +28,9 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include "vc5_screen.h"
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_tiling.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_tiling.h"
|
||||
|
||||
/** Return the width in pixels of a 64-byte microtile. */
|
||||
uint32_t
|
@@ -24,7 +24,7 @@
|
||||
#include "util/u_pack_color.h"
|
||||
#include "util/format_srgb.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
#include "compiler/v3d_compiler.h"
|
||||
#include "broadcom/cle/v3d_packet_v33_pack.h"
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
/* This file generates the per-v3d-version function prototypes. It must only
|
||||
* be included from vc5_context.h.
|
||||
* be included from v3d_context.h.
|
||||
*/
|
||||
|
||||
struct v3d_hw;
|
@@ -29,9 +29,9 @@
|
||||
#include "util/u_upload_mgr.h"
|
||||
#include "indices/u_primconvert.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_resource.h"
|
||||
#include "vc5_cl.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_resource.h"
|
||||
#include "v3d_cl.h"
|
||||
#include "broadcom/compiler/v3d_compiler.h"
|
||||
#include "broadcom/common/v3d_macros.h"
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "util/u_format.h"
|
||||
#include "util/u_half.h"
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
#include "broadcom/common/v3d_macros.h"
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
||||
#include "broadcom/compiler/v3d_compiler.h"
|
@@ -23,10 +23,10 @@
|
||||
|
||||
#include "util/u_format.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
||||
#include "broadcom/common/v3d_macros.h"
|
||||
#include "vc5_format_table.h"
|
||||
#include "v3d_format_table.h"
|
||||
|
||||
#define SWIZ(x,y,z,w) { \
|
||||
PIPE_SWIZZLE_##x, \
|
@@ -27,7 +27,7 @@
|
||||
* kernel.
|
||||
*/
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "v3d_context.h"
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
||||
|
||||
void v3dX(bcl_epilogue)(struct vc5_context *vc5, struct vc5_job *job)
|
@@ -22,8 +22,8 @@
|
||||
*/
|
||||
|
||||
#include "util/u_format.h"
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_tiling.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_tiling.h"
|
||||
#include "broadcom/common/v3d_macros.h"
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
||||
|
@@ -33,9 +33,9 @@
|
||||
|
||||
#ifdef USE_V3D_SIMULATOR
|
||||
|
||||
#include "vc5_screen.h"
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_simulator_wrapper.h"
|
||||
#include "v3d_screen.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_simulator_wrapper.h"
|
||||
|
||||
#define HW_REGISTER_RO(x) (x)
|
||||
#define HW_REGISTER_RW(x) (x)
|
@@ -31,8 +31,8 @@
|
||||
#include "util/u_half.h"
|
||||
#include "util/u_helpers.h"
|
||||
|
||||
#include "vc5_context.h"
|
||||
#include "vc5_tiling.h"
|
||||
#include "v3d_context.h"
|
||||
#include "v3d_tiling.h"
|
||||
#include "broadcom/common/v3d_macros.h"
|
||||
#include "broadcom/cle/v3dx_pack.h"
|
||||
|
@@ -1,36 +0,0 @@
|
||||
C_SOURCES := \
|
||||
vc5_blit.c \
|
||||
vc5_bufmgr.c \
|
||||
vc5_bufmgr.h \
|
||||
vc5_cl.c \
|
||||
vc5_cl.h \
|
||||
vc5_context.c \
|
||||
vc5_context.h \
|
||||
vc5_fence.c \
|
||||
vc5_formats.c \
|
||||
vc5_format_table.h \
|
||||
vc5_job.c \
|
||||
vc5_program.c \
|
||||
vc5_query.c \
|
||||
vc5_resource.c \
|
||||
vc5_resource.h \
|
||||
vc5_screen.c \
|
||||
vc5_screen.h \
|
||||
vc5_simulator.c \
|
||||
vc5_simulator_wrapper.cpp \
|
||||
vc5_simulator_wrapper.h \
|
||||
vc5_tiling.c \
|
||||
vc5_tiling.h \
|
||||
vc5_uniforms.c \
|
||||
$()
|
||||
|
||||
V3D_PER_VERSION_SOURCES = \
|
||||
v3dx_context.h \
|
||||
v3dx_format_table.c \
|
||||
v3dx_job.c \
|
||||
v3dx_simulator.c \
|
||||
vc5_draw.c \
|
||||
vc5_emit.c \
|
||||
vc5_rcl.c \
|
||||
vc5_state.c \
|
||||
$()
|
@@ -95,8 +95,8 @@ else
|
||||
driver_pl111 = declare_dependency()
|
||||
endif
|
||||
if with_gallium_v3d
|
||||
subdir('winsys/vc5/drm')
|
||||
subdir('drivers/vc5')
|
||||
subdir('winsys/v3d/drm')
|
||||
subdir('drivers/v3d')
|
||||
else
|
||||
driver_v3d = declare_dependency()
|
||||
endif
|
||||
|
@@ -76,8 +76,8 @@ include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/tegra/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/v3d/Automake.inc
|
||||
include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc
|
||||
include $(top_srcdir)/src/gallium/drivers/vc5/Automake.inc
|
||||
include $(top_srcdir)/src/gallium/drivers/pl111/Automake.inc
|
||||
|
||||
include $(top_srcdir)/src/gallium/drivers/virgl/Automake.inc
|
||||
|
3
src/gallium/winsys/v3d/drm/Makefile.sources
Normal file
3
src/gallium/winsys/v3d/drm/Makefile.sources
Normal file
@@ -0,0 +1,3 @@
|
||||
C_SOURCES := \
|
||||
v3d_drm_public.h \
|
||||
v3d_drm_winsys.c
|
@@ -20,7 +20,7 @@
|
||||
|
||||
libv3dwinsys = static_library(
|
||||
'v3dwinsys',
|
||||
files('vc5_drm_winsys.c'),
|
||||
files('v3d_drm_winsys.c'),
|
||||
include_directories : [
|
||||
inc_src, inc_include,
|
||||
inc_gallium, inc_gallium_aux, inc_gallium_drivers,
|
@@ -24,9 +24,9 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "vc5_drm_public.h"
|
||||
#include "v3d_drm_public.h"
|
||||
|
||||
#include "vc5/vc5_screen.h"
|
||||
#include "v3d/v3d_screen.h"
|
||||
|
||||
struct pipe_screen *
|
||||
v3d_drm_screen_create(int fd)
|
@@ -1,3 +0,0 @@
|
||||
C_SOURCES := \
|
||||
vc5_drm_public.h \
|
||||
vc5_drm_winsys.c
|
Reference in New Issue
Block a user