Bas Nieuwenhuizen
5a26f528cb
meson,i965: Link with android deps when building for android.
...
The DBG marco in brw_blorp.c ends up calling an android log function:
error: undefined reference to '__android_log_print'
v2: On suggestion from Lionel, hang the Android dependency onto a new
libintel_common dependency.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
2019-08-07 15:34:46 +02:00
Erik Faye-Lund
da9e2958ec
gallium/dump: add missing query-type to short-list
...
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Fixes: 3f6b3d9db7 ("gallium: add PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-07 12:03:24 +00:00
Erik Faye-Lund
70a93922db
gallium/dump: add missing query-type to short-list
...
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Fixes: a677799e51 ("gallium: add PIPE_QUERY_SO_OVERFLOW_ANY_PREDICATE
and corresponding cap")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-07 12:03:24 +00:00
Eric Engestrom
5b10ddf358
util: fix mem leak of program path
...
Fixes: 759b940389 ("util: Get program name based on path when possible")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
2019-08-07 08:42:42 +01:00
Jan Vesely
6b8269d0bb
clover: Fix build after clang r367864
...
v2: Drop special case of llvm-9
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu >
Acked-by: Dieter Nützel <Dieter@nuetzel-hh.de >
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de >
Reviewed-by: Aaron Watry <awatry@gmail.com >
2019-08-06 23:33:55 -04:00
Timothy Arceri
d81e11332b
mesa: remove super old TODOs from shaderapi.c
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-07 13:31:40 +10:00
John Stultz
fcfa2d1447
mesa: freedreno: Android.registers.mk: Fix up register xml.h file generation
...
The current Androdi.registers.mk file causes build failures that
look like:
FAILED:
external/mesa3d/src/freedreno/Android.registers.mk:49: error: implicit rules are obsolete: out/target/product/linaro_db845c/gen/STATIC_LIBRARIES/libfreedreno_registers_intermediates/registers/%.xml.h
Caused by the following Android build rule change:
https://android.googlesource.com/platform/build/+/HEAD/Changes.md#implicit_rules
I tried to replace this with something similar to the static
pattern suggested in the URL above, but ended up getting all the
xml.h files generated using only the first a2xx.xml source file.
So I've fallen back to explicitly defining the make rules for
each.
Additionally, we needed to provide the proper
LOCAL_EXPORT_C_INCLUDE_DIRS and add the defined static library
to the components that depend on the register headers.
Acked-by: Eric Anholt <eric@anholt.net >
Signed-off-by: John Stultz <john.stultz@linaro.org >
2019-08-07 02:18:38 +00:00
John Stultz
96baf052b2
mesa: Add ir3/ir3_nir_imul.c generation to Android.mk
...
With current master we're seeing build failures with AOSP:
error: undefined symbol: ir3_nir_lower_imul
This is due to the ir3_nir_imul.c file not being generated
in the Android.mk files.
This patch simply adds it to the Android build, after which
thigns build and book ok on db410c.
Cc: Rob Clark <robdclark@chromium.org >
Cc: Emil Velikov <emil.l.velikov@gmail.com >
Cc: Amit Pundir <amit.pundir@linaro.org >
Cc: Sumit Semwal <sumit.semwal@linaro.org >
Cc: Alistair Strachan <astrachan@google.com >
Cc: Greg Hartman <ghartman@google.com >
Cc: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Rob Clark <robdclark@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: John Stultz <john.stultz@linaro.org >
2019-08-07 02:18:19 +00:00
Rohan Garg
16edd56fcc
panfrost: Take into account a index_bias for glDrawElementsBaseVertex calls
...
Midgard does not accept a index_bias directly and relies instead on a
bias correction offset (offset_bias_correction) in order to calculate
the unbiased vertex index.
We need to make sure we adjust offset_start and vertex_count in order to
take into account the index_bias as required by a
glDrawElementsBaseVertex call and then supply a additional
offset_bias_correction to the hardware.
Signed-off-by: Rohan Garg <rohan.garg@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
2019-08-06 17:18:19 -07:00
Bas Nieuwenhuizen
4bb17c08ae
radv/gfx10: Enable DCC for storage images.
...
v2: Hide it behind a perftest flag.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Bas Nieuwenhuizen
3a5950f501
radv: Add device argument for dcc compression check.
...
Because it is about to be generation dependent.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Bas Nieuwenhuizen
8c63ffe54d
radv: Disable compression for compute DCC decompress store.
...
Previously we relied on stores not using DCC but that is going to
change, so disable compression explicitly.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Bas Nieuwenhuizen
216a9d8871
radv: Add extra struct to image view creation.
...
For extra args. Unlike image creation, I'm not embedding the vk
struct in there, so all the inline structs can be kept.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Bas Nieuwenhuizen
50add1b33a
radv: Do not decompress on LAYOUT_GENERAL.
...
We handle render loops properly now and STORAGE still disables
DCC/TC-compat HTILE in general.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Bas Nieuwenhuizen
66131ceb8b
radv: Pass through render loop detection to internal layout decisions.
...
And do nothing with it yet.
Everything outside a renderpass has no render loop.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Bas Nieuwenhuizen
a171a6663d
radv: Add render loop detection in renderpass.
...
VK spec 7.3:
"Applications must ensure that all accesses to memory that backs
image subresources used as attachments in a given renderpass instance
either happen-before the load operations for those attachments, or
happen-after the store operations for those attachments."
So the only renderloops we can have is with input attachments. Detect
these.
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 02:13:07 +02:00
Timothy Arceri
a5b9394b87
drirc: Add vendor workaround for Divinity: Original Sin EE
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93551
2019-08-07 10:12:49 +10:00
Timothy Arceri
dca119f12c
mesa/gallium: add dric option to allow overriding GL vendor string
...
Will be used in the following patch.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93551
2019-08-07 10:12:49 +10:00
Bas Nieuwenhuizen
04c6feb12c
radv: Fix config reg assert.
...
Using the wrong bounds
Fixes: "219d6939df8 radv: add more assertions to make sure packets are correctly emitted"
Reviewed-by: Andres Rodriguez <andresx7@gmail.com >
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-08-07 08:58:23 +10:00
Marek Olšák
16577f5002
tgsi_to_nir: add a few needed double opcodes
...
for internal radeonsi shaders
v2 (Connor):
- Split out prep work from adding opcodes, and rewrite the former
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 18:03:26 -04:00
Marek Olšák
2207daf549
tgsi_to_nir: implement a few needed 64-bit integer opcodes
...
for internal radeonsi shaders
v2 (Connor):
- Split this out from the prep work, and rework the former
- Add support for U64SNE
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 18:03:24 -04:00
Connor Abbott
37f6350c1d
ttn: Prepare for 64-bit sources and destinations
...
v2: Properly handle 32->64 bit conversions
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 18:03:22 -04:00
Connor Abbott
4b10949482
ttn: Use 1-bit NIR comparison opcodes
...
We shouldn't be using the versions that output a 32-bit boolean, since
nir_opt_algebraic won't optimize them as well. Drivers will lower these
to the 32-bit versions after optimizing, if appropriate. Also, this will
make implementing 64-bit comparisons easier.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 18:03:19 -04:00
Connor Abbott
e7fd90e8ef
nir/builder: Add nir_b2i
...
Same as nir_b2f but for integers.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 18:03:10 -04:00
Pierre-Eric Pelloux-Prayer
f84c9ad17a
radeonsi: enable EXT_shader_image_load_store
...
This depends on LLVM 10 because this needs https://reviews.llvm.org/D65283
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:41:07 -04:00
Pierre-Eric Pelloux-Prayer
25fff591c1
radeonsi: add support for nir atomic_inc_wrap/atomic_dec_wrap
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:41:06 -04:00
Pierre-Eric Pelloux-Prayer
8789248541
radeonsi: add support for tgsi ATOMDEC_WRAP / ATOMINC_WRAP opcodes
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:41:04 -04:00
Pierre-Eric Pelloux-Prayer
704a6b5948
ac: add ac_atomic_inc_wrap / ac_atomic_dec_wrap support
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:41:03 -04:00
Pierre-Eric Pelloux-Prayer
a9ec718652
nir: add atomic_inc_wrap/atomic_dec_wrap image intrinsics
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:41:02 -04:00
Pierre-Eric Pelloux-Prayer
fc0a2e5d01
glsl: add EXT_shader_image_load_store new image functions
...
This extension has 2 functions that are missing from the ARB versions:
- imageAtomicIncWrap
- imageAtomicDecWrap
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:41:00 -04:00
Pierre-Eric Pelloux-Prayer
70a47fb032
glsl: add EXT_shader_image_load_store keywords to lexer
...
All of them already existed for ARB_shader_image_load_store.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:58 -04:00
Pierre-Eric Pelloux-Prayer
cfba168b6c
glsl: add size qualifiers from EXT_shader_image_load_store
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:56 -04:00
Pierre-Eric Pelloux-Prayer
cd45d09226
glsl: handle differences between ARB/EXT versions of shader_image_load_store
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:55 -04:00
Pierre-Eric Pelloux-Prayer
5db28b0cf7
mesa: add EXT_shader_image_load_store glBindImageTextureEXT function
...
The implementation is almost identical to glBindImageTexture except for error
checking.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:53 -04:00
Pierre-Eric Pelloux-Prayer
71e619a825
glapi: add EXT_shader_image_load_store
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:52 -04:00
Pierre-Eric Pelloux-Prayer
91924453ee
gallium: add PIPE_CAP_TGSI_ATOMINC_WRAP to indicate support
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:51 -04:00
Pierre-Eric Pelloux-Prayer
8b6bfed3d2
tgsi: add ATOMICINC_WRAP/ATOMICDEC_WRAP opcode
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
2019-08-06 17:40:34 -04:00
Marek Olšák
1d8a71af57
radeonsi/gfx10: enable all CUs for GS if NGG is never used
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:09:03 -04:00
Marek Olšák
91227a1e17
radeonsi/gfx10: add global use_ngg and use_ngg_streamout flags
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:09:02 -04:00
Marek Olšák
f064b530f6
radeonsi/gfx10: remove an obsolete VGT_REUSE_OFF workaround
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:09:01 -04:00
Marek Olšák
37dd8ebcf7
radeonsi/gfx10: disable LATE_ALLOC_GS on Navi14
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:59 -04:00
Marek Olšák
c5a6ecf61a
radeonsi/gfx10: implement a bug workaround for GE_PC_ALLOC
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:58 -04:00
Marek Olšák
8f8c28767e
radeonsi/gfx10: implement a bug workaround for NGG -> legacy transitions
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:57 -04:00
Marek Olšák
cb9d95623b
radeonsi/gfx10: implement a GE bug workaround
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:56 -04:00
Marek Olšák
e08b0d7ac4
radeonsi/gfx10: set GE_CNTL for tessellation correctly
...
to match PAL
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:54 -04:00
Marek Olšák
71b53020b7
radeonsi/gfx10: simplify NGG code in si_update_shaders
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:53 -04:00
Marek Olšák
a232f5e07c
radeonsi/gfx10: fix input VGPRs for legacy VS
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:51 -04:00
Marek Olšák
8d90157d49
radeonsi: make sure that rasterizer state != NULL and remove all NULL checking
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:39 -04:00
Marek Olšák
8b8819e88a
radeonsi: make sure that DSA state != NULL and remove all NULL checking
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:39 -04:00
Marek Olšák
b758eed9c3
radeonsi: make sure that blend state != NULL and remove all NULL checking
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
2019-08-06 17:08:39 -04:00