gallium driver for Vivante GPUs
cover gallium driver for Vivante GPUs
As the original patchstack is now about 300 patches, I have choosen to squash the patches together into three different parts.
- renderonly library
A lightweight library to add basic infrastructure for renderonly GPUs. With this library it is possible to run wayland or and other kms egl apps.
- etnaviv gallium driver
glxgears renders so its time to get this driver mainline.
- imx gallium driver
Special dump driver for the imx-drm kms driver.
The renderonly library approach is a temporary workaround until 'gbm2' is ready. I am aware that not everybody is happy about it but it helps to increase the possible use cases like wayland and kms egl apps. Also keep in mind that this library was only made for the embedded use case and will not work with hybrid GPUs etc. If there are fundamental problems with this library I will drop it and etnaviv will only work under X (with armada-ddx from unstable-devel branch).
Some (older) results from piglit and deqp can be found here:
https://christian-gmeiner.info/piglit
https://christian-gmeiner.info/deqp
All individual patches can be found here:
https://github.com/etnaviv/mesa/tree/for_mainline_v1
The squased one can be found here:
https://github.com/etnaviv/mesa/tree/for_mainline_v1_squashed
As this work is a collaborative effort of Lucas Stack, Philipp Zabel, Rob Herring, Russell King, Wladimir J. van der Laan and myself the etnaviv gallium patch has a fictive author, but our signoff.
Happy reviewing!
Christian
PS: I hope I got all Signed-off's right - if not I am quite sorry and will fix it in v2 or before pushing.
PPS: As not everybody is happy about the renderonly library and as I am the only author I did not used the fictive author for the other two patches.
Christian Gmeiner (2):
gallium: add renderonly library
imx: gallium driver for imx-drm scanout driver
The etnaviv authors (1):
etnaviv: gallium driver for Vivante GPUs
configure.ac | 21 + src/gallium/Automake.inc | 5 + src/gallium/Makefile.am | 8 + src/gallium/auxiliary/Makefile.am | 10 + src/gallium/auxiliary/Makefile.sources | 4 + .../auxiliary/pipe-loader/pipe_loader_drm.c | 10 + src/gallium/auxiliary/renderonly/renderonly.c | 199 ++ src/gallium/auxiliary/renderonly/renderonly.h | 81 + src/gallium/auxiliary/target-helpers/drm_helper.h | 45 + .../auxiliary/target-helpers/drm_helper_public.h | 6 + src/gallium/drivers/etnaviv/.gitignore | 1 + src/gallium/drivers/etnaviv/Automake.inc | 11 + src/gallium/drivers/etnaviv/Makefile.am | 44 + src/gallium/drivers/etnaviv/Makefile.sources | 26 + src/gallium/drivers/etnaviv/etnaviv_asm.c | 107 + src/gallium/drivers/etnaviv/etnaviv_asm.h | 133 + src/gallium/drivers/etnaviv/etnaviv_blend.c | 109 + src/gallium/drivers/etnaviv/etnaviv_blend.h | 52 + src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 640 +++++ src/gallium/drivers/etnaviv/etnaviv_clear_blit.h | 48 + src/gallium/drivers/etnaviv/etnaviv_compiler.c | 2564 ++++++++++++++++++++ src/gallium/drivers/etnaviv/etnaviv_compiler.h | 120 + .../drivers/etnaviv/etnaviv_compiler_cmdline.c | 146 ++ src/gallium/drivers/etnaviv/etnaviv_context.c | 323 +++ src/gallium/drivers/etnaviv/etnaviv_context.h | 194 ++ src/gallium/drivers/etnaviv/etnaviv_debug.h | 79 + src/gallium/drivers/etnaviv/etnaviv_disasm.c | 612 +++++ src/gallium/drivers/etnaviv/etnaviv_disasm.h | 40 + src/gallium/drivers/etnaviv/etnaviv_emit.c | 770 ++++++ src/gallium/drivers/etnaviv/etnaviv_emit.h | 123 + src/gallium/drivers/etnaviv/etnaviv_fence.c | 87 + src/gallium/drivers/etnaviv/etnaviv_fence.h | 39 + src/gallium/drivers/etnaviv/etnaviv_format.c | 268 ++ src/gallium/drivers/etnaviv/etnaviv_format.h | 47 + src/gallium/drivers/etnaviv/etnaviv_internal.h | 259 ++ src/gallium/drivers/etnaviv/etnaviv_query.c | 120 + src/gallium/drivers/etnaviv/etnaviv_query.h | 64 + src/gallium/drivers/etnaviv/etnaviv_query_sw.c | 123 + src/gallium/drivers/etnaviv/etnaviv_query_sw.h | 47 + src/gallium/drivers/etnaviv/etnaviv_rasterizer.c | 81 + src/gallium/drivers/etnaviv/etnaviv_rasterizer.h | 57 + src/gallium/drivers/etnaviv/etnaviv_resource.c | 438 ++++ src/gallium/drivers/etnaviv/etnaviv_resource.h | 148 ++ src/gallium/drivers/etnaviv/etnaviv_rs.c | 127 + src/gallium/drivers/etnaviv/etnaviv_rs.h | 86 + src/gallium/drivers/etnaviv/etnaviv_screen.c | 804 ++++++ src/gallium/drivers/etnaviv/etnaviv_screen.h | 94 + src/gallium/drivers/etnaviv/etnaviv_shader.c | 285 +++ src/gallium/drivers/etnaviv/etnaviv_shader.h | 45 + src/gallium/drivers/etnaviv/etnaviv_state.c | 664 +++++ src/gallium/drivers/etnaviv/etnaviv_state.h | 52 + src/gallium/drivers/etnaviv/etnaviv_surface.c | 152 ++ src/gallium/drivers/etnaviv/etnaviv_surface.h | 55 + src/gallium/drivers/etnaviv/etnaviv_texture.c | 338 +++ src/gallium/drivers/etnaviv/etnaviv_texture.h | 75 + src/gallium/drivers/etnaviv/etnaviv_tiling.c | 96 + src/gallium/drivers/etnaviv/etnaviv_tiling.h | 56 + src/gallium/drivers/etnaviv/etnaviv_transfer.c | 355 +++ src/gallium/drivers/etnaviv/etnaviv_transfer.h | 35 + src/gallium/drivers/etnaviv/etnaviv_translate.h | 516 ++++ src/gallium/drivers/etnaviv/etnaviv_uniforms.c | 118 + src/gallium/drivers/etnaviv/etnaviv_uniforms.h | 45 + src/gallium/drivers/etnaviv/etnaviv_util.h | 108 + src/gallium/drivers/etnaviv/etnaviv_zsa.c | 123 + src/gallium/drivers/etnaviv/etnaviv_zsa.h | 52 + src/gallium/drivers/etnaviv/hw/cmdstream.xml.h | 270 +++ src/gallium/drivers/etnaviv/hw/common.xml.h | 320 +++ src/gallium/drivers/etnaviv/hw/isa.xml.h | 239 ++ src/gallium/drivers/etnaviv/hw/state.xml.h | 397 +++ src/gallium/drivers/etnaviv/hw/state_2d.xml.h | 1497 ++++++++++++ src/gallium/drivers/etnaviv/hw/state_3d.xml.h | 1231 ++++++++++ src/gallium/drivers/etnaviv/hw/state_hi.xml.h | 465 ++++ src/gallium/drivers/etnaviv/hw/state_vg.xml.h | 205 ++ src/gallium/drivers/imx/Automake.inc | 9 + src/gallium/drivers/imx/Makefile.am | 9 + src/gallium/winsys/etnaviv/drm/Makefile.am | 32 + .../winsys/etnaviv/drm/etnaviv_drm_public.h | 42 + .../winsys/etnaviv/drm/etnaviv_drm_winsys.c | 184 ++ src/gallium/winsys/imx/drm/Makefile.am | 33 + src/gallium/winsys/imx/drm/Makefile.sources | 3 + src/gallium/winsys/imx/drm/imx_drm_public.h | 31 + src/gallium/winsys/imx/drm/imx_drm_winsys.c | 41 + 82 files changed, 17598 insertions(+) create mode 100644 src/gallium/auxiliary/renderonly/renderonly.c create mode 100644 src/gallium/auxiliary/renderonly/renderonly.h create mode 100644 src/gallium/drivers/etnaviv/.gitignore create mode 100644 src/gallium/drivers/etnaviv/Automake.inc create mode 100644 src/gallium/drivers/etnaviv/Makefile.am create mode 100644 src/gallium/drivers/etnaviv/Makefile.sources create mode 100644 src/gallium/drivers/etnaviv/etnaviv_asm.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_asm.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_blend.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_blend.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_clear_blit.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_clear_blit.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_compiler.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_compiler.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_compiler_cmdline.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_context.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_context.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_debug.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_disasm.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_disasm.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_emit.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_emit.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_fence.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_fence.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_format.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_format.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_internal.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_query.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_query.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_query_sw.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_query_sw.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_rasterizer.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_rasterizer.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_resource.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_resource.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_rs.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_rs.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_screen.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_screen.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_shader.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_shader.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_state.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_state.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_surface.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_surface.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_texture.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_texture.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_tiling.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_tiling.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_transfer.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_transfer.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_translate.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_uniforms.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_uniforms.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_util.h create mode 100644 src/gallium/drivers/etnaviv/etnaviv_zsa.c create mode 100644 src/gallium/drivers/etnaviv/etnaviv_zsa.h create mode 100644 src/gallium/drivers/etnaviv/hw/cmdstream.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/common.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/isa.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/state.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/state_2d.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/state_3d.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/state_hi.xml.h create mode 100644 src/gallium/drivers/etnaviv/hw/state_vg.xml.h create mode 100644 src/gallium/drivers/imx/Automake.inc create mode 100644 src/gallium/drivers/imx/Makefile.am create mode 100644 src/gallium/winsys/etnaviv/drm/Makefile.am create mode 100644 src/gallium/winsys/etnaviv/drm/etnaviv_drm_public.h create mode 100644 src/gallium/winsys/etnaviv/drm/etnaviv_drm_winsys.c create mode 100644 src/gallium/winsys/imx/drm/Makefile.am create mode 100644 src/gallium/winsys/imx/drm/Makefile.sources create mode 100644 src/gallium/winsys/imx/drm/imx_drm_public.h create mode 100644 src/gallium/winsys/imx/drm/imx_drm_winsys.c
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/3 gallium: add renderonly library
This a very lightweight library to add basic support for renderonly GPUs. It does all the magic regarding in/exporting buffers etc. This library will likely break android support and hopefully will get replaced with a better solution based on gbm2.
--- src/gallium/Automake.inc | 5 + src/gallium/auxiliary/Makefile.am | 10 ++ src/gallium/auxiliary/Makefile.sources | 4 + src/gallium/auxiliary/renderonly/renderonly.c | 199 ++++++++++++++++++++++++++ src/gallium/auxiliary/renderonly/renderonly.h | 81 +++++++++++ 5 files changed, 299 insertions(+) create mode 100644 src/gallium/auxiliary/renderonly/renderonly.c create mode 100644 src/gallium/auxiliary/renderonly/renderonly.h
src/gallium/Automake.inc +5 -0
@@ -50,6 +50,11 @@ GALLIUM_COMMON_LIB_DEPS = \ $(PTHREAD_LIBS) \ $(DLOPEN_LIBS) +if HAVE_LIBDRM +GALLIUM_COMMON_LIB_DEPS += \ + $(LIBDRM_LIBS) +endif + GALLIUM_WINSYS_CFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include \
src/gallium/auxiliary/Makefile.am +10 -0
@@ -20,6 +20,16 @@ libgallium_la_SOURCES = \ $(NIR_SOURCES) \ $(GENERATED_SOURCES) +if HAVE_LIBDRM + +AM_CFLAGS += \ + $(LIBDRM_CFLAGS) + +libgallium_la_SOURCES += \ + $(RENDERONLY_SOURCES) + +endif + if HAVE_MESA_LLVM AM_CFLAGS += \
src/gallium/auxiliary/Makefile.sources +4 -0
@@ -435,3 +435,7 @@ GALLIVM_SOURCES := \ draw/draw_llvm_sample.c \ draw/draw_pt_fetch_shade_pipeline_llvm.c \ draw/draw_vs_llvm.c + +RENDERONLY_SOURCES := \ + renderonly/renderonly.c \ + renderonly/renderonly.h
src/gallium/auxiliary/renderonly/renderonly.c new file +199 -0
199 lines not on this page · raw message
src/gallium/auxiliary/renderonly/renderonly.h new file +81 -0
81 lines not on this page · raw message
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/3 imx: gallium driver for imx-drm scanout driver
In reply to Christian GmeinerThe imx (stub) driver is needed to get hardware acceleration from etnaviv on a platform using imx-drm kms driver. This adds support for wayland and native kms egl apps.
--- configure.ac | 12 +++++++ src/gallium/Makefile.am | 4 +++ .../auxiliary/pipe-loader/pipe_loader_drm.c | 5 +++ src/gallium/auxiliary/target-helpers/drm_helper.h | 23 ++++++++++++ .../auxiliary/target-helpers/drm_helper_public.h | 3 ++ src/gallium/drivers/imx/Automake.inc | 9 +++++ src/gallium/drivers/imx/Makefile.am | 9 +++++ src/gallium/winsys/imx/drm/Makefile.am | 33 +++++++++++++++++ src/gallium/winsys/imx/drm/Makefile.sources | 3 ++ src/gallium/winsys/imx/drm/imx_drm_public.h | 31 ++++++++++++++++ src/gallium/winsys/imx/drm/imx_drm_winsys.c | 41 ++++++++++++++++++++++ 11 files changed, 173 insertions(+) create mode 100644 src/gallium/drivers/imx/Automake.inc create mode 100644 src/gallium/drivers/imx/Makefile.am create mode 100644 src/gallium/winsys/imx/drm/Makefile.am create mode 100644 src/gallium/winsys/imx/drm/Makefile.sources create mode 100644 src/gallium/winsys/imx/drm/imx_drm_public.h create mode 100644 src/gallium/winsys/imx/drm/imx_drm_winsys.c
configure.ac +12 -0
@@ -2447,6 +2447,9 @@ if test -n "$with_gallium_drivers"; then PKG_CHECK_MODULES([ETNAVIV], [libdrm_etnaviv >= $LIBDRM_ETNAVIV_REQUIRED]) require_libdrm "etnaviv" ;; + ximx) + HAVE_GALLIUM_IMX=yes + ;; xswrast) HAVE_GALLIUM_SOFTPIPE=yes if test "x$MESA_LLVM" = x1; then
@@ -2499,6 +2502,12 @@ if test "x$HAVE_RADEON_VULKAN" = "xyes"; then radeon_llvm_check "radv" "3" "9" "0" fi +dnl We need to validate some needed dependencies for renderonly drivers. + +if test "x$HAVE_GALLIUM_ETNAVIV" != xyes -a "x$HAVE_GALLIUM_IMX" == xyes ; then + AC_ERROR([Building with imx requires etnaviv]) +fi + dnl Set LLVM_LIBS - This is done after the driver configuration so dnl that drivers can add additional components to LLVM_COMPONENTS. dnl Previously, gallium drivers were updating LLVM_LIBS directly
@@ -2572,6 +2581,7 @@ AM_CONDITIONAL(HAVE_GALLIUM_SWRAST, test "x$HAVE_GALLIUM_SOFTPIPE" = xyes -o \ AM_CONDITIONAL(HAVE_GALLIUM_VC4, test "x$HAVE_GALLIUM_VC4" = xyes) AM_CONDITIONAL(HAVE_GALLIUM_VIRGL, test "x$HAVE_GALLIUM_VIRGL" = xyes) AM_CONDITIONAL(HAVE_GALLIUM_ETNAVIV, test "x$HAVE_GALLIUM_ETNAVIV" = xyes) +AM_CONDITIONAL(HAVE_GALLIUM_IMX, test "x$HAVE_GALLIUM_IMX" = xyes) AM_CONDITIONAL(HAVE_GALLIUM_STATIC_TARGETS, test "x$enable_shared_pipe_drivers" = xno)
@@ -2719,6 +2729,7 @@ AC_CONFIG_FILES([Makefile src/gallium/drivers/swr/Makefile src/gallium/drivers/trace/Makefile src/gallium/drivers/etnaviv/Makefile + src/gallium/drivers/imx/Makefile src/gallium/drivers/vc4/Makefile src/gallium/drivers/virgl/Makefile src/gallium/state_trackers/clover/Makefile
@@ -2749,6 +2760,7 @@ AC_CONFIG_FILES([Makefile src/gallium/tests/trivial/Makefile src/gallium/tests/unit/Makefile src/gallium/winsys/etnaviv/drm/Makefile + src/gallium/winsys/imx/drm/Makefile src/gallium/winsys/freedreno/drm/Makefile src/gallium/winsys/i915/drm/Makefile src/gallium/winsys/intel/drm/Makefile
src/gallium/Makefile.am +4 -0
@@ -72,6 +72,10 @@ if HAVE_GALLIUM_ETNAVIV SUBDIRS += drivers/etnaviv winsys/etnaviv/drm endif +if HAVE_GALLIUM_IMX +SUBDIRS += drivers/imx winsys/imx/drm +endif + ## swrast/softpipe if HAVE_GALLIUM_SOFTPIPE SUBDIRS += drivers/softpipe
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c +5 -0
@@ -158,6 +158,11 @@ static const struct drm_driver_descriptor driver_descriptors[] = { .driver_name = "etnaviv", .create_screen = pipe_etna_create_screen, .configuration = configuration_query, + }, + { + .driver_name = "imx-drm", + .create_screen = pipe_imx_drm_create_screen, + .configuration = configuration_query, } };#endif
src/gallium/auxiliary/target-helpers/drm_helper.h +23 -0
@@ -289,4 +289,27 @@ pipe_etna_create_screen(int fd)#endif +#ifdef GALLIUM_IMX +#include "imx/drm/imx_drm_public.h" + +struct pipe_screen * +pipe_imx_drm_create_screen (int fd) +{ +struct pipe_screen *screen; + + screen =imx_drm_screen_create (fd); +return screen ?debug_screen_wrap (screen) :NULL ; +} + +#else + +struct pipe_screen * +pipe_imx_drm_create_screen (int fd) +{ +fprintf (stderr,"imx-drm: driver missing\n" ); +return NULL ; +} + +#endif +#endif /* DRM_HELPER_H */
src/gallium/auxiliary/target-helpers/drm_helper_public.h +3 -0
@@ -37,4 +37,7 @@ pipe_vc4_create_screen(int fd);struct pipe_screen *pipe_etna_create_screen (int fd); +struct pipe_screen * +pipe_imx_drm_create_screen (int fd); +#endif /* _DRM_HELPER_PUBLIC_H */
src/gallium/drivers/imx/Automake.inc new file +9 -0
@@ -0,0 +1,9 @@ +if HAVE_GALLIUM_IMX + +TARGET_DRIVERS += imx-drm +TARGET_CPPFLAGS += -DGALLIUM_IMX +TARGET_LIB_DEPS += \ + $(top_builddir)/src/gallium/winsys/imx/drm/libimxdrm.la \ + $(LIBDRM_LIBS) + +endif
src/gallium/drivers/imx/Makefile.am new file +9 -0
@@ -0,0 +1,9 @@ +include $(top_srcdir)/src/gallium/Automake.inc + +AM_CPPFLAGS = \ + $(GALLIUM_CFLAGS) \ + $(IMX_CFLAGS) + +noinst_LTLIBRARIES = libimx.la + +libimx_la_SOURCES =
src/gallium/winsys/imx/drm/Makefile.am new file +33 -0
@@ -0,0 +1,33 @@ +# Copyright © 2012 Intel Corporation +# +# 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, sublicense, +# 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 above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# 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 +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS 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. + +include Makefile.sources +include $(top_srcdir)/src/gallium/Automake.inc + +AM_CFLAGS = \ + -I$(top_srcdir)/src/gallium/drivers \ + $(GALLIUM_WINSYS_CFLAGS) \ + $(IMX_CFLAGS) + +noinst_LTLIBRARIES = libimxdrm.la + +libimxdrm_la_SOURCES = $(C_SOURCES)
src/gallium/winsys/imx/drm/Makefile.sources new file +3 -0
@@ -0,0 +1,3 @@ +C_SOURCES := \ + imx_drm_public.h \ + imx_drm_winsys.c
src/gallium/winsys/imx/drm/imx_drm_public.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* Copyright © 2014 NVIDIA Corporation +* +* 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, sublicense, +* 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 above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* 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 NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS 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. +*/ + +#ifndef __IMX_DRM_PUBLIC_H__ +#define __IMX_DRM_PUBLIC_H__ + +struct pipe_screen ; + +struct pipe_screen *imx_drm_screen_create (int fd); + +#endif /* __IMX_DRM_PUBLIC_H__ */
src/gallium/winsys/imx/drm/imx_drm_winsys.c new file +41 -0
41 lines not on this page · raw message
Signature · 6 lines
2.7.4 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel