Marek Olšák
9ec5e96ec8
vbo: use the template for noop GLvertexformat initialization
...
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3611 >
2020-02-04 15:12:00 -05:00
Marek Olšák
d447a4888f
vbo: move GLvertexformat initialization into a template header file for reuse
...
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3611 >
2020-02-04 15:11:58 -05:00
Eric Engestrom
cae6093266
freedreno/perfcntrs: fix fd leak
...
CoverityID: 1110568, 1458071
Fixes: 5a13507164 ("freedreno/perfcntrs: add fdperf")
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3671 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3671 >
2020-02-04 19:26:40 +00:00
Eric Anholt
8a2c507a8a
util: Drop unpacking from int signed to unsigned and vice versa.
...
After all the previous cleanups, it's clear that the callers only ever
ask for SINT->SINT or UINT->UINT. Cuts 20k of compiled text from
gallium drivers.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
1d367c3aa5
gallium: Refactor some single-pixel util_format_read/writes.
...
We can use the new row helpers to cut down on the noise.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
ab081970e0
gallium: Add and use a helper for packing uc from a color_union.
...
The same pattern kept coming up, and we don't need to hit
util_format_write_4* to do it when we have util_format_pack_rgba().
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
b2a2cf492d
softpipe: Refactor pipe_get/put_tile_rgba_* paths.
...
We always want the same behavior of choosing which unpack to do to
generate our 4x32-bit RGBA values, so just sink that choice down below
the pipe_get/put_tile API.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
8bc56551da
softpipe: Drop the raw_to* part of the tile cache interface.
...
Nothing else uses it, so make it static.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
6cdf523f00
gallium/util: Remove pipe_get_tile_z/put_tile_z.
...
The previous caller wasn't using it as tiled, just row-at-a-time, and
didn't want the clipping (since copytexsubimage comes in clipped). If
someone wanted these functions again in the future, they should be
rewritten on u_format_pack/unpack.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
e986f2b7af
mesa/st: Use direct util_format_pack/unpack instead of u_tile.
...
We're doing a row at a time, and don't need u_tile's clipping.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Eric Anholt
c574cda3c6
util: Make helper functions for pack/unpacking pixel rows.
...
Almost all users of the unpack functions don't have strides to plug in
(and many are only doing one pixel!), and this will help simplify
them.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744 >
2020-02-04 19:02:59 +00:00
Karol Herbst
333c9d5bb0
clover: add trivial clCreateCommandQueueWithProperties implementation
...
It's not adding 2.0 features, but it's enough to run the 2.0 CTS on top of
clover and probably most CL applications using it.
We just fail if we hit unknown properties and that's probably good enough
until we implement the other bits properly.
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Pierre Moreau <dev@pmoreau.org >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2370 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2370 >
2020-02-04 18:09:23 +00:00
Eric Anholt
b064697af1
gallium/osmesa: Try to fix the test for big-endian.
...
Our packed expected values will be byte-swapped for the (mostly) array
formats we're testing.
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Eric Anholt
dd899fd43e
gallium/osmesa: Fill out other format tests.
...
Move expected values/bpp into the test params, add more formats now that
we've fixed context setup so that they work.
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Eric Anholt
0a53918f02
gallium/osmesa: Fix MakeCurrent of non-8888 contexts.
...
OSMesa is weird and you only get the type (byte/ubyte/565/etc.) at
MakeCurrent time, having only a channel order at CreateContext time. The
code was setting up a visual at CreateContext time, and then at
MakeCurrent it would fail to validate against the visual.
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Eric Anholt
655394c6ed
gallium/osmesa: Fix a typo in the unit test's test names.
...
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Danylo Piliaiev
75c50d0342
osmesa/tests: Cover OSMESA_RGB GL_UNSIGNED_BYTE case
...
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Danylo Piliaiev
d83abf1d37
st/mesa: Handle the rest renderbuffer formats from OSMesa
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2189
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/989
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2036
CC: <mesa-stable@lists.freedesktop.org >
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:07 +00:00
Eric Engestrom
d1165ad18b
util/os_socket: fix header unavailable on windows
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2464
Fixes: e62c3cf350 ("util/os_socket: Include unistd.h to fix build error")
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com >
2020-02-04 17:33:49 +00:00
Danylo Piliaiev
36126b6211
i965: Do not set front_buffer_dirty if there is no front buffer
...
Otherwise there will be a warning:
"libEGL warning: FIXME: egl/x11 doesn't support front buffer rendering."
Happens with EGL_KHR_surfaceless_context:
eglMakeCurrent(egl_display, EGL_NO_SURFACE, EGL_NO_SURFACE, egl_context)
eglMakeCurrent(egl_display, egl_surface, egl_surface, egl_context)
glFlush() // Here will be a warning
Cc: <mesa-stable@lists.freedesktop.org >
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1525
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3628 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3628 >
2020-02-04 15:41:05 +00:00
Tomeu Vizoso
9afdcd64f2
gitlab-ci: Switch kernel for LAVA jobs to 5.5
...
All fixes we were carrying in our branch have been merged already.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:34 +01:00
Alyssa Rosenzweig
162927e43c
panfrost: Use size0 when calculating the offset to a depth level
...
Previously, we were using cubemap_stride and sometimes overwriting other
BOs such as shaders.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:30 +01:00
Tomeu Vizoso
64541dd698
panfrost: Only clamp the LOD to disable mipmapping when needed
...
Otherwise, we may be incrementing max_lod over the limit, causing a
DATA_INVALID_FAULT.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:26 +01:00
Tomeu Vizoso
255227ecec
panfrost: Fix decoding of tiled 3D textures
...
From decoding cmd streams generated by the blob, the pointers in the
payload don't seem to include those that refer to different depth levels
when the texture is in tiled format.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:06 +01:00
Erik Faye-Lund
fd27fb5113
st/mesa: use uint-result for sampling stencil buffers
...
Otherwise, we end up mismatching the result-type and the sampler-type.
Fixes: 642125edd9 ("st/mesa: use uint-samplers for sampling stencil buffers")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3680 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3680 >
2020-02-04 07:43:36 +00:00
Alyssa Rosenzweig
9cdd89a34b
pan/midgard: Remove unused variable
...
../src/panfrost/midgard/mir.c: In function ‘mir_bytemask_of_read_components_index’:
../src/panfrost/midgard/mir.c:471:18: warning: unused variable ‘mask’ [-Wunused-variable]
471 | uint16_t mask = 0;
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
2020-02-04 08:24:37 +01:00
Alyssa Rosenzweig
0f3eb7989b
pan/midgard: Check for null consts
...
Valid shaders shouldn't hit this, but Coverity doesn't know that.
CID 1458029: (FORWARD_NULL)
Passing null pointer "consts" to "print_scalar_field", which dereferences it.
Tomeu: Fix name of variable
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
2020-02-04 08:24:33 +01:00
Alyssa Rosenzweig
8ec4028d40
panfrost: Avoid overlapping copy
...
CID 1457486: Memory - corruptions (OVERLAPPING_COPY)
Assigning "(*attr).extra_flags = (*attr).size = 0U" to "(*attr).stride",
which have overlapping memory +locations.
Coverity.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
2020-02-04 08:24:18 +01:00
Marek Vasut
c32bd325e7
etnaviv: Destroy rsc->pending_ctx set in etna_resource_destroy()
...
Destroy rsc->pending_ctx set in etna_resource_destroy(), otherwise
the memory is allocated, never free'd, and becomes unreachable. This
fixes a memory leak.
Fixes: 9e672e4d20 ("etnaviv: keep references to pending resources")
Cc: <mesa-stable@lists.freedesktop.org >
Signed-off-by: Marek Vasut <marex@denx.de >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3633 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3633 >
2020-02-04 06:27:19 +00:00
Kristian H. Kristensen
df6a2a7197
turnip: Be explicit about converting vk compare func to a6xx
...
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
6dd57f0e38
nir: Remove always-true assert
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
e3dfa8f4d6
glsl: Use 'using' to be explicit about visitor overloads
...
Clang has a warning about overloading virtuals that triggers when a
derived class defines a virtual function that's an overload of
function in the base class. This kind of thing:
struct chart; // let's pretend this exists
struct Base
{
virtual void* get(char* e);
};
struct Derived: public Base {
virtual void* get(chart* e); // typo, we wanted to override the same function
};
The solution is to use
using Base::get;
to be explicit about the intention to reuse the base class virtual.
We hit this a lot with out glsl ir_hierarchical_visitor visitor
pattern, so let's adds some 'using' to calm down the compiler.
See-also: https://stackoverflow.com/questions/18515183/c-overloaded-virtual-function-warning-by-clang )
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
0bc516fceb
spirv/opencl: Cast opcode up front to avoid warnings
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
67dd51606c
freedreno/fdperf: Cast away some ignored return values
...
This is developer tool, it can crash and burn if it fails to allocate.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
2be81a3bfa
nir: Make unroll pragma work on clang
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
de856c6170
nir: Delete unused is_var_constant() helper
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Fritz Koenig
42f7e124ca
Revert "gitlab-ci: disable a630 tests as mesa-cheza is down"
...
This reverts commit f38851d84c
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3687 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3687 >
2020-02-03 21:45:16 +00:00
Jan Vesely
0ccda2ebff
clover: Use explicit conversion from llvm::StringRef to std::string
...
Fixes build after llvm 777180a32b61070a10dd330b4f038bf24e916af1
("[ADT] Make StringRef's std::string conversion operator explicit")
CC: <mesa-stable@lists.freedesktop.org >
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu >
Reviewed-by: Francisco Jerez <currojerez@riseup.net >
2020-02-03 21:25:59 +00:00
Erik Faye-Lund
5d83314945
zink: disallow depth-stencil blits with format-change
...
The Vulkan spec says this about vkCmdBlitImage:
"No format conversion is supported between depth/stencil images. The
formats must match."
So yeah, let's stop trying to do this.
Reviewed-by: Dave Airlie <airlied@redhat.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681 >
2020-02-03 21:42:52 +01:00
Erik Faye-Lund
85d4b41f68
zink: be more careful about the mask-check
...
We currently disallow blits that we can support. Let's be more accurate
when checking the mask.
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681 >
2020-02-03 21:42:49 +01:00
Boris Brezillon
b550b7ef3b
panfrost: Fix the damage box clamping logic
...
When the rendering are is not covering the whole FBO, and the biggest
damage rect is empty, we can have damage.max{x,y} > damage.min{x,y},
which leads to invalid reload boxes.
Fixes: 65ae86b854 ("panfrost: Add support for KHR_partial_update()")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
2020-02-03 12:53:47 +00:00
Boris Brezillon
2b089e26bf
pan/midgard: Stop leaking instruction objects in mir_schedule_alu()
...
Allocate those instructions with ralloc() instead of using mem_dup.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
2020-02-03 12:53:47 +00:00
Boris Brezillon
c7e68d8625
pan/midgard: Don't check 'branch && branch->writeout' twice in mir_schedule_alu()
...
There's a writeout bool storing the result of this test. Use it instead
of duplicating the test.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
2020-02-03 12:53:47 +00:00
Boris Brezillon
ef89a52fe5
pan/midgard: Lower bitfield extract to shifts
...
Let's lower bitfield extract to shifts until we figure out if it can be
natively supported.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
2020-02-03 12:53:47 +00:00
Boris Brezillon
c68cd39eb3
pan/midgard: Make sure we pass the right RT id to emit_fragment_store()
...
nir_intrinsic_base() is assigned nir_variable.data.driver_location,
which is assigned a unique ID based on the variable position in the
shader variable list. There's no guarantee that this position will
match the RT id we want to pass to emit_fragment_store().
Add a search_var() helper to retrieve a nir_variable based on its driver
location, so we can pass the right RT value to emit_fragment_store().
We also make sure the shader output is color, since emit_fragment_store()
is not ready for depth/stencil stores yet.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
2020-02-03 12:53:47 +00:00
Boris Brezillon
25946be4c4
pan/midgard: Add an enum to describe the render targets
...
We are about to add a special ZS render target, let's add a enum so we
can easily know which render target we're dealing with.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676 >
2020-02-03 12:53:47 +00:00
Bernd Kuhls
e62c3cf350
util/os_socket: Include unistd.h to fix build error
...
Fixes
In file included from ../src/util/os_socket.c:8:
../src/util/os_socket.h:26:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
ssize_t os_socket_recv(int socket, void *buffer, size_t length, int flags);
seen with gcc version 8.3.0 (Buildroot 2019.11) and uClibc 1.0.32.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Fixes: ef5266ebd5 ("util/os_socket: Add socket related functions.")
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3659 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3659 >
2020-02-03 10:55:44 +00:00
Eric Engestrom
f38851d84c
gitlab-ci: disable a630 tests as mesa-cheza is down
...
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3677 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3677 >
2020-02-03 10:08:25 +00:00
Ilia Mirkin
a4e6270541
nv50: report max lod bias of 15.0
...
The blob returns 15, the state creation code clamps it to 15, but since
the dawn of time we've returned 4.0. Setting this to 15 also fixes
GTF-GL33.gtf21.GL3Tests.texture_lod_bias.texture_lod_bias_clamp_m_le_M
which is sensitive to these limits.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
2020-02-02 22:01:18 -05:00
Eric Engestrom
0021f7dc30
egl: put full path to libEGL_mesa.so in GLVND json
...
This is useful when installing to a non-standard path.
glvnd_icd.py copied & adapted from src/intel/vulkan/anv_icd.py
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com >
Acked-by: Matt Turner <mattst88@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3038 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3038 >
2020-02-02 17:46:17 +00:00