Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.
V3D 3.3 is a continuation of the 3D implementation in VC4 (v2.1 and v2.6). V3D 3.3 introduces an MMU (no more CMA allocations) and support for GLES3.1. This driver is not currently conformant, though that will be a target as soon as possible. V3D 3.x parts use a new texture tiling layout common across many Broadcom graphics parts including and the HVS scanout engine. It also massively changes the QPU instructions, introducing a common physical register file (no more A/B split) and half-float instructions, while removing the 4x8 unorm instructions in favor of half-float for talking to fixed function interfaces. Because so much has changed, vc5 is implemented in a separate gallium driver, using only the XML code-generation support from vc4. v2: Fix tile layout for 64bpp textures. Fix texture swizzling for 32-bit returns. Fix up a bit of MRT setup. Sync the simulator to kernel behavior a bit more. Improve uniform debugging code. Rebase on QIR->VIR rename. Move texture state mostly to the CSOs. Improve cache flushing on the simulator. Fix program deletion use-after-frees. Acked-by: Dave Airlie <airlied@gmail.com> (uabi plan) Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> (uabi plan)
- Loading branch information
Showing
43 changed files
with
9,131 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[*.{c,h}] | ||
indent_style = space | ||
indent_size = 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
if HAVE_GALLIUM_VC5 | ||
|
||
TARGET_DRIVERS += vc5 | ||
TARGET_CPPFLAGS += -DGALLIUM_VC5 | ||
TARGET_LIB_DEPS += \ | ||
$(top_builddir)/src/gallium/winsys/vc5/drm/libvc5drm.la \ | ||
$(top_builddir)/src/gallium/drivers/vc5/libvc5.la \ | ||
$(top_builddir)/src/broadcom/libbroadcom.la | ||
|
||
if !HAVE_GALLIUM_VC4 | ||
TARGET_LIB_DEPS += $(top_builddir)/src/broadcom/cle/libbroadcom_cle.la | ||
endif | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright © 2014 Broadcom | ||
# | ||
# 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_builddir)/src/compiler/nir \ | ||
-I$(top_builddir)/src/broadcom \ | ||
$(LIBDRM_CFLAGS) \ | ||
$(VC5_SIMULATOR_CFLAGS) \ | ||
$(GALLIUM_DRIVER_CFLAGS) \ | ||
$(VALGRIND_CFLAGS) \ | ||
$() | ||
|
||
noinst_LTLIBRARIES = libvc5.la | ||
|
||
libvc5_la_SOURCES = $(C_SOURCES) | ||
|
||
libvc5_la_LDFLAGS = \ | ||
$(VC5_SIMULATOR_LIBS) \ | ||
$(NULL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
C_SOURCES := \ | ||
vc5_blit.c \ | ||
vc5_bufmgr.c \ | ||
vc5_bufmgr.h \ | ||
vc5_cl.c \ | ||
vc5_cl.h \ | ||
vc5_context.c \ | ||
vc5_context.h \ | ||
vc5_draw.c \ | ||
vc5_emit.c \ | ||
vc5_fence.c \ | ||
vc5_formats.c \ | ||
vc5_job.c \ | ||
vc5_program.c \ | ||
vc5_query.c \ | ||
vc5_rcl.c \ | ||
vc5_resource.c \ | ||
vc5_resource.h \ | ||
vc5_screen.c \ | ||
vc5_screen.h \ | ||
vc5_simulator.c \ | ||
vc5_state.c \ | ||
vc5_tiling.c \ | ||
vc5_tiling.h \ | ||
vc5_uniforms.c \ | ||
$() |
Oops, something went wrong.