- Jul 24, 2018
-
-
Signed-off-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
- Jul 18, 2018
-
-
Robert Foss authored
Add support for the ForceSoftware option, which is togglable on the Android platform through setting the "drm.gpu.force_software" property to a non-zero value. kms_swrast is also enabled as a fallback for when a driver is not able to be loaded for for a drm node that was opened. Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Robert Foss authored
In order to simplify Android bringup on new devices, provide the property "drm.gpu.force_software" which forces kms_swrast to be used. Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Robert Foss authored
This failure mode is a bit tricky to debug and manifests itself later as a null pointer dereference, for which finding the origin is needlessly tricky. Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- Jun 25, 2018
-
-
Robert Foss authored
This patch both adds support for probing & filtering DRM nodes and switches away from using the GRALLOC_MODULE_PERFORM_GET_DRM_FD gralloc call. Currently the filtering is based just on the driver name, and the desired name is supplied using the "drm.gpu.vendor_name" Android property. Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Tomasz Figa <tfiga@chromium.org>
-
- Jun 21, 2018
-
-
Maintaining both flink names and prime fd support which are provided by 2 different gralloc implementations is problematic because we have a dependency on a specific gralloc implementation header. This mostly disables the dependency on the gralloc implementation and headers. The dependency on GRALLOC_MODULE_PERFORM_GET_DRM_FD remains for now, but the definition is added locally to remove the header dependency. drm_gralloc support can be enabled by setting BOARD_USES_DRM_GRALLOC=true in BoardConfig.mk. Signed-off-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Tomasz Figa <tfiga@chromium.org>
-
Robert Foss authored
Signed-off-by:
Robert Foss <robert.foss@collabora.com> Reviewed-by:
Tomasz Figa <tfiga@chromium.org> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
- Apr 26, 2018
-
-
Karol Herbst authored
Signed-off-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Jose Maria Casanova Crespo <jmcasanova@igalia.com> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Karol Herbst authored
Signed-off-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Rob Clark <robdclark@gmail.com> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Karol Herbst authored
Signed-off-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Jose Maria Casanova Crespo <jmcasanova@igalia.com> Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Neil Roberts authored
For all of the OpFOrd* comparisons except OpFOrdNotEqual the hardware should probably already return false if one of the operands is NaN so we don’t need to have an explicit check for it. This seems to at least work on Intel hardware. This should reduce the number of instructions generated for the most common comparisons. For what it’s worth, the original code to handle this was added in e062eb64. The commit message for that says that it was to fix some CTS tests for OpFUnord* opcodes. Even if the hardware doesn’t handle NaNs this patch shouldn’t affect those tests. At any rate they have since been moved out of the mustpass list. Incidentally those tests fail on the nvidia proprietary driver so it doesn’t seem like handling NaNs correctly is a priority. Reviewed-by:
Iago Toral Quiroga <itoral@igalia.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
- Apr 25, 2018
-
-
Matt Atwood authored
v2: Branding changed Signed-off-by:
Matt Atwood <matthew.s.atwood@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Eric Anholt authored
The driver may have a reference on the separate stencil buffer for some reason (like an unflushed job using it), so we can't directly free the resource and should instead just decrement the refcount that we own. Fixes double-free in KHR-GLES3.packed_depth_stencil.blit.depth32f_stencil8 on vc5. Fixes: e94eb5e6 ("gallium/util: add u_transfer_helper") Reviewed-by:
Rob Clark <robdclark@gmail.com>
-
Eric Anholt authored
Like for stores, we need to emit a separate load_general packet.
-
Eric Anholt authored
The internal-type-bpp path is for surfaces that get stored in the raw TLB format. For 4.x, we're storing MSAA as just 2x width/height at the original format.
-
Eric Anholt authored
Fixes piglit fbo-depthstencil blit default_fb
-
Eric Anholt authored
-
Eric Anholt authored
For single-sample we have to always program SAMPLE_0, but for multisample we want to store all the samples.
-
Juan A. Suarez Romero authored
Commit fa328456 added VP9 config support, but this needs a newer libva version, 1.7.0 or above. Fixes: fa328456 ("st/va: add VP9 config to enable profile2") CC: 18.1 <mesa-stable@lists.freedesktop.org> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Tapani Pälli authored
Patch enables use of short and unsigned short data for texture uploads, rendering and reading of framebuffers within the restrictions specified in GL_EXT_texture_norm16 spec. Patch also enables those 16bit format layout qualifiers listed in GL_NV_image_formats that depend on EXT_texture_norm16. v2: expose extension with dummy_true fix layout qualifier map changes (Ilia Mirkin) v3: use _mesa_has_EXT_texture_norm16, other fixes and cleanup (Ilia Mirkin) v4: fix rest of the issues found Signed-off-by:
Tapani Pälli <tapani.palli@intel.com> Acked-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Jordan Justen authored
Fixes: 5608d0a2 "meson: use array type options" Cc: Dylan Baker <dylan@pnwbakers.com> Signed-off-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Tapani Pälli <tapani.palli@intel.com>
-
Roland Scheidegger authored
The logic was flawed, since mul(x,y) will be <= 0 (exactly 0) when the sign is the same but both numbers are sufficiently small (if the product is smaller than 2^-128). This could apparently lead to emitting a sufficient amount of additional bogus vertices to overflow the allocated array for them, hitting an assertion (still safe with release builds since we just aborted clipping after the assertion in this case - I'm however unsure if this is now really no longer possible, so that code stays). Not sure if the additional vertices could cause other grief, I didn't see anything wrong even when hitting the assertion. Essentially, both +-0 are treated as positive (the vertex is considered to be inside the clip volume for this plane), so integrate the logic determining different sign into the branch there. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Roland Scheidegger authored
Simplifies the logic when to emit null tris (albeit the reasons why we have to do this remain unclear). This is strictly just logic simplification, the behavior doesn't change at all. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Ilia Mirkin authored
Some analysis suggests that all short immediates are sign-extended. The insnCanLoad logic already accounted for this, but we could still pick the wrong form when emitting actual instructions that support both short and long immediates (with the long form usually having additional restrictions that insnCanLoad should be aware of). This also reverses a bunch of commits that had previously "worked around" this issue in various emitters: 9c632245: gm107/ir: make use of ADD32I for all immediates 83a4f28d: gm107/ir: make use of LOP32I for all immediates b84c9758: gm107/ir: make use of IMUL32I for all immediates d3076802: gk110/ir: make use of IMUL32I for all immediates as well as the original import for UMUL in the nvc0 emitter. Reported-by:
Karol Herbst <kherbst@redhat.com> Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Tested-by:
Karol Herbst <kherbst@redhat.com>
-
- Apr 24, 2018
-
-
Boyan Ding authored
When draw buffers are changed on a bound framebuffer, DrawBufferAllocate() hook should be called. However, it is missing in update_framebuffer with window-system framebuffer, in which FB's draw buffer state should match context state, potentially resulting in a change. Note: This is needed because gallium delays creating the front buffer, i965 works fine without this change. V2 (Timothy Arceri): - Rebased on merged/simplified DrawBuffer driver function - Move DrawBuffer call outside fb->ColorDrawBuffer[0] != ctx->Color.DrawBuffer[0] check to make piglit pass. v3 (Timothy Arceri): - Call new DrawBuffaerAllocate() driver function. Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> (v2) Reviewed-by: Brian Paul <brianp@vmware.com> (v2) Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99116
-
Timothy Arceri authored
Unlike some of the classic drivers the st was only using DrawBuffer() to allocated some buffers on-demand. Creating a separate function will allow us to call it from update_framebuffer() in the following patch without regressing some of the older classic drivers. Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Timothy Arceri authored
Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Dylan Baker authored
Because I clearly wasn't thinking and clearly didn't do a good job testing. Sigh Fixes: c5a97d65 ("meson: fix builds against LLVM built without rtti") Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Dylan Baker authored
Instead of emulating it with message. Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
This option type is nice since it involves less converting strings into lists, and because it validates the values that are provided. v2: - Set with_any_vk to true if any vulkan driver is built (Eric) Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
Building without rtti is a frought with peril, but it's something that autotools supports so we need to support it too. Since we've moved to version 0.44 as a whole we can use the meson functionality for accessing random llvm-config options we can check for rtti and add -fno-rtti to all C++ code accordingly. Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com>
-
Dylan Baker authored
meson has gotten pretty smart about tracking C and C++ dependencies (internal and external), and using the right linker. This wasn't always the case and we created empty c++ files to force the use of the c++ linker. We don't need that any more. Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
meson used to get grumpy if the sources list was empty, even when using --whole-archive (link_whole). In more recent versions that's not true, so remove the workaround. Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
In more modern versions of meson a custom_target returns an index-able object. This allows us to create accurate dependency models for targets that rely only on the header and not on the code from anv_entrypoints. Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
We have already required 0.44 for building clover and swr, so it was already partially required. This just makes it required across the board instead of just for clover and swr. There is a bug in 0.44 which makes it impossible to build mesa in some configurations, so require 0.44.1 which fixes this. Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
This one's completely my fault, I didn't do good enough testing after rebasing and this got missed. Fixes: d28c2465 ("meson: build graw tests") Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
Since we have an option to turn test building on and off, we should honor that. Fixes: 34cb4d0e ("meson: build tests for gallium mesa state tracker") Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Dylan Baker authored
Since mesa_classic is build-on-demand the tests will create a demand and add a bunch of extra compilation. Fixes: 43a6e849 ("meson: build mesa test.") Signed-off-by:
Dylan Baker <dylan.c.baker@intel.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Nanley Chery authored
The paths which sample with the clear color are now using a getter which performs the sRGB decode needed to enable this fast clear. This path can be exercised by fast-clearing a texture, then performing an operation which requires sRGB decoding. Test coverage for this feature is provided with the following tests: * Shader texture calls: - spec@ext_texture_srgb@tex-srgb * Shader texelfetch calls: - spec@arb_framebuffer_srgb@fbo-fast-clear - spec@arb_framebuffer_srgb@msaa-fast-clear * Blending: - spec@arb_framebuffer_srgb@arb_framebuffer_srgb-fast-clear-blend * Blitting: - spec@arb_framebuffer_srgb@blit texture srgb msaa enabled clear Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Nanley Chery authored
The blending issue seems to be present on CNL as well. Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-