mesa/src/broadcom/Makefile.sources
Neil Roberts ee4d51f8b2 v3d: Add a lowering pass for line smoothing
When line smoothing is enabled, the driver now increases the width of
the line so that it can add some semi-transparent pixels to either side
of the line. A lowering pass is added which modifies the alpha component
of every write to fragment output 0 so that if the fragment is outside
the width of the line then the alpha is reduced. It additionally
discards fragments that are completely invisible. It might seem bad to
use discard on a tiled renderer but the assumption is that any bad
effects from using discard will also happen anyway because of enabling
alpha blending.

v2: Disable the line smoothing pass entirely when the framebuffer
    contains an integer colour output or one with no alpha channel.
    Calculate the coverage once upfront and store in a global variable
    instead of calculating each time an output write is modified. Also
    do the conditional discard once upfront.
v3: Don’t check whether the output buffer has an alpha channel. Only
    look at output 0. Use aa_line_width intrinsic instead of calculating
    the real line width in the shader. Clamp the coverage as part of the
    global variable, not per output write.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5624>
2020-07-06 21:59:16 +00:00

62 lines
1.4 KiB
Text

BROADCOM_GENXML_GENERATED_FILES = \
cle/v3d_packet_v21_pack.h \
cle/v3d_packet_v33_pack.h \
cle/v3d_packet_v41_pack.h \
cle/v3d_packet_v42_pack.h \
cle/v3d_xml.h \
$()
BROADCOM_GENXML_XML_FILES = \
cle/v3d_packet_v21.xml \
cle/v3d_packet_v33.xml \
$()
BROADCOM_FILES = \
cle/v3d_packet_helpers.h \
cle/v3dx_pack.h\
clif/clif_dump.c \
clif/clif_dump.h \
clif/clif_private.h \
common/v3d_cpu_tiling.h \
common/v3d_debug.c \
common/v3d_debug.h \
common/v3d_device_info.h \
common/v3d_limits.h \
common/v3d_macros.h \
compiler/nir_to_vir.c \
compiler/vir.c \
compiler/vir_dump.c \
compiler/vir_live_variables.c \
compiler/vir_opt_copy_propagate.c \
compiler/vir_opt_dead_code.c \
compiler/vir_opt_redundant_flags.c \
compiler/vir_opt_small_immediates.c \
compiler/vir_register_allocate.c \
compiler/vir_to_qpu.c \
compiler/qpu_schedule.c \
compiler/qpu_validate.c \
compiler/v3d33_tex.c \
compiler/v3d33_vpm_setup.c \
compiler/v3d40_tex.c \
compiler/v3d_compiler.h \
compiler/v3d_nir_lower_image_load_store.c \
compiler/v3d_nir_lower_io.c \
compiler/v3d_nir_lower_line_smooth.c \
compiler/v3d_nir_lower_scratch.c \
compiler/v3d_nir_lower_txf_ms.c \
qpu/qpu_disasm.c \
qpu/qpu_disasm.h \
qpu/qpu_instr.c \
qpu/qpu_instr.h \
qpu/qpu_pack.c \
$()
BROADCOM_PER_VERSION_SOURCES = \
clif/v3dx_dump.c \
$()
BROADCOM_DECODER_FILES = \
cle/v3d_decoder.c \
cle/v3d_decoder.h \
$()