- 08 Mar, 2019 37 commits
-
-
Eric Engestrom authored
GLVND already provides these, so distro packagers have been deleting them all along. Let's save ourselves the trouble and not build them in the first place. Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com> Reviewed-by:
Dylan Baker <dylan@pnwbakers.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Eric Engestrom authored
GLVND already provides these, so distro packagers have been deleting them all along. Let's save ourselves the trouble and not build them in the first place. Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com> Reviewed-by:
Dylan Baker <dylan@pnwbakers.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Brian Paul authored
To fix build failure. I guess my meson configuration has assertions disabled for some reason. Trivial fix.
-
Brian Paul authored
This fixes a rendering issue where UBO updates aren't always picked up by drawing calls. This issue effected the Webots robotics simulator. VMware bug 2175527. Testing Done: Webots replay, piglit, misc Linux games Reviewed-by:
Thomas Hellstrom <thellstrom@vmware.com>
-
Brian Paul authored
The draw_vgpu10() function was huge. Move the code for preparing the vertex buffers and the index buffer into separate functions. Reviewed-by:
Neha Bhende <bhenden@vmware.com>
-
Brian Paul authored
Trivial.
-
Brian Paul authored
Move the variant key declarations inside the scope they're used. Use designated initializers instead of memset() calls. Reviewed-by:
Neha Bhende <bhenden@vmware.com>
-
Brian Paul authored
And add a comment that we're implicitly converting PIPE_TRANSFER_ flags to PB_USAGE_ flags in one place. And statically assert that the enum values match. Reviewed-by:
Neha Bhende <bhenden@vmware.com> Reviewed-by:
Thomas Hellstrom <thellstrom@vmware.com>
-
Brian Paul authored
Reviewed-by:
Neha Bhende <bhenden@vmware.com> Reviewed-by:
Thomas Hellstrom <thellstrom@vmware.com>
-
Brian Paul authored
Use a new enum type instead of 'unsigned' to make things a bit more understandable. Reviewed-by:
Neha Bhende <bhenden@vmware.com> Reviewed-by:
Thomas Hellstrom <thellstrom@vmware.com>
-
With this patch, the svga shader type will be saved in the shader variant, and there is no need to pass in the shader type to the define/destroy variant functions. Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Brian Paul authored
And add/update comments. Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Brian Paul authored
Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Alejandro Piñeiro authored
For a non-array varying, it is expecting ARRAY_SIZE as 1, instead of 0. Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
From the ARB_enhanced_layouts specification: "For the property TRANSFORM_FEEDBACK_BUFFER_INDEX, a single integer identifying the index of the active transform feedback buffer associated with an active variable is written to <params>. For variables corresponding to the special names "gl_NextBuffer", "gl_SkipComponents1", "gl_SkipComponents2", "gl_SkipComponents3", and "gl_SkipComponents4", -1 is written to <params>." We were storing the xfb_buffer value, instead of the value corresponding to GL_TRANSFORM_FEEDBACK_BUFFER_INDEX. Note that the implementation assumes that varyings would be sorted by offset and buffer. Signed-off-by:
Antia Puentes <apuentes@igalia.com> Signed-off-by:
Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
Instead of a custom ARB_gl_spirv xfb gather info pass. In fact, this is not only about reusing code, but the current custom code was not handling properly how many varyings are enumerated from some complex types. So this change is also about fixing some corner cases. v2: Use util_bitcount, simplify current stage check (Kenneth) Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
On OpenGL, a array of a simple type adds just one varying. So gl_transform_feedback_varying_info struct defined at mtypes.h includes the parameters Type (base_type) and Size (number of elements). This commit checks this when the recursive add_var_xfb_outputs call handles arrays, to ensure that just one is addded. We also need to take into account AoA here v2: use glsl_type_is_leaf from nir_types (Timothy Arceri) v3: simplified aoa check, without the need ot using glsl_type_is_leaf, using glsl_types_is_struct (Timothy Arceri) Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
Right now we are only re-sorting outputs. But it is better to sort too varyings, as linker expect them to be sorted out (as it was done on GLSL). For varyings, and to make easier to compute buffer_index, we sort also by buffer. We could do the same for outputs, but we lack a reason for that, so we left it as it is (just offset). Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
In order to be used for OpenGL (right now for ARB_gl_spirv). This commit adds two new structures: * nir_xfb_varying_info: that identifies each individual varying. For each one, we need to know the type, buffer and xfb_offset * nir_xfb_buffer_info: as now for each buffer, in addition to the stride, we need to know how many varyings are assigned to it. For this patch, the only case where num_outputs != num_varyings is with the case of doubles, that for dvec3/4 could require more than one output. There are more cases though (like aoa), that will be handled on following patches. v2: updated after new nir general XFB support introduced for "anv: Add support for VK_EXT_transform_feedback" v3: compute num_varyings beforehand for allocating, instead of relying on num_outputs as approximate value (Timothy Arceri) Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Alejandro Piñeiro authored
Where component_offset here is the offset when accessing components of a packed variable. Or in other words, location_frac on nir.h. Different places of mesa use different names for it. Technically nir_xfb_info consumer can get the same from the component_mask, it seems somewhat forced to make it to compute it, instead of providing it. v2: rename local location_frac for comp_offset, more similar to the intended use (Timothy Arceri) Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com>
-
Samuel Pitoiset authored
This changes is actually wrong because we have to sync before doing image layout transitions. This fixes rendering issues in Batman, Path of Exile and probably more titles. This reverts commit 76c17cfd. Fixes: 76c17cfd ("radv: execute external subpass barriers after ending subpasses") Cc: 19.0 <mesa-stable@lists.freedesktop.org> Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Lionel Landwerlin authored
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
When Guc is enabled, the error state will contain a "global" buffer for the GuC log buffer. Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
We don't write them in the aub file yet. Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
Found out that some base64 data matched the '---' identifier. We can avoid this by adding the surrounding spaces. Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Lionel Landwerlin authored
The error state contains several kind of BOs, including the context image which we will want to write in a later commit. Because it can come later in the error state than the user buffers and because we need to write it first in the aub file, we have to first build a list of BOs and then write them in the appropriate order. Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com>
-
Add the missing PIPE_CAP_CONTEXT_PRIORITY_MASK and parsing of the context construction flags. Testcase: piglit/egl-context-priority Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Kenneth Graunke authored
I'll want to use this for transfer maps, which already do their own flushing. This lets us avoid a double flush, and also gives us more control over the batch which is selected.
-
Kenneth Graunke authored
We were using batch->contains_draw as a proxy for "are we even using this engine?" That isn't quite right, because it only counts regular draws. BLORP operations may have also rendered to a resource, which needs to trigger flushing. To check for this, we also see if the render and sometimes depth caches are non-empty. We can also drop the "but there might already be stale data in the cache even if we haven't emitted any commands yet" concern in the comments. The kernel flushes caches between batches. This may not be great but it's at least better than what was there.
-
By mistake, this was previously set for all shaders. It is a vertex shader property so only makes sense to set it for vertex shaders. Signed-Off-By:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-By:
Timothy Arceri <tarceri@itsqueeze.com> Tested-by:
Dieter Nützel <Dieter@nuetzel-hh.de>
-
- 07 Mar, 2019 3 commits
-
-
Unlike most of the cases in which we do this by hand, the new helper properly handles non-32-bit pointers. Reviewed-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-
There's no guarantee when build_deref_follower is called that the two derefs have the same bit size destination. Insert a cast on the array index in case we have differing bit sizes. While we're here, insert some asserts in build_deref_array and build_deref_ptr_as_array. The validator will catch violations here but they're easier to debug if we catch them while building. Reviewed-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-
Because we already know the immediate right-hand parameter, we can potentially save the optimizer a bit of work. Reviewed-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by:
Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
-