[Mesa-dev] [PATCH 0/4] PIPE_CAP default handler
Eric Anholt
eric at anholt.net
Sat Aug 11 01:20:42 UTC 2018
I've been putting off some PIPE_CAPs I've needed to write because each
one is such a pain to do, so I went and implemented the thing I've
been dreaming of: a single place to define a new pipe cap's default
state.
Eric Anholt (4):
gallium: Add a helper for implementing PIPE_CAP_* default values.
vc4: Drop a bunch of duplicated gallium PIPE_CAP default code.
v3d: Drop a bunch of duplicated gallium PIPE_CAP default code.
freedreno: Drop a bunch of duplicated gallium PIPE_CAP default code.
src/gallium/auxiliary/Makefile.sources | 2 +
src/gallium/auxiliary/meson.build | 2 +
src/gallium/auxiliary/util/u_screen.c | 312 ++++++++++++++++++
src/gallium/auxiliary/util/u_screen.h | 29 ++
src/gallium/drivers/etnaviv/etnaviv_screen.c | 6 +-
.../drivers/freedreno/freedreno_screen.c | 108 +-----
src/gallium/drivers/i915/i915_screen.c | 5 +-
src/gallium/drivers/llvmpipe/lp_screen.c | 7 +-
.../drivers/nouveau/nv30/nv30_screen.c | 6 +-
.../drivers/nouveau/nv50/nv50_screen.c | 6 +-
.../drivers/nouveau/nvc0/nvc0_screen.c | 6 +-
src/gallium/drivers/r300/r300_screen.c | 4 +-
src/gallium/drivers/r600/r600_pipe.c | 4 +-
src/gallium/drivers/radeonsi/si_get.c | 5 +-
src/gallium/drivers/softpipe/sp_screen.c | 6 +-
src/gallium/drivers/svga/svga_screen.c | 6 +-
src/gallium/drivers/swr/swr_screen.cpp | 8 +-
src/gallium/drivers/v3d/v3d_screen.c | 151 +--------
src/gallium/drivers/vc4/vc4_screen.c | 175 +---------
src/gallium/drivers/virgl/virgl_screen.c | 6 +-
20 files changed, 396 insertions(+), 458 deletions(-)
create mode 100644 src/gallium/auxiliary/util/u_screen.c
create mode 100644 src/gallium/auxiliary/util/u_screen.h
--
2.18.0
More information about the mesa-dev
mailing list