- 06 Apr, 2017 1 commit
-
-
Timothy Arceri authored
This doesn't do anything useful so just remove it. Reviewed-by:
Matt Turner <mattst88@gmail.com> Reviewed-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com>
-
- 05 Apr, 2017 5 commits
-
-
Timothy Arceri authored
This avoids validation and looking up the buffer target for a second time. Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com>
-
Timothy Arceri authored
This allows internal users to pass buffer objects directly and allows for KHR_no_error support to be more easily added. Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com>
-
Nicolai Hähnle authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
v2: - spec quote and style (Ian) Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
- 11 Nov, 2016 1 commit
-
-
Brian Paul authored
Trivial.
-
- 28 Oct, 2016 1 commit
-
-
Brian Paul authored
To be a little more understandable. Reviewed-by:
Anuj Phogat <anuj.phogat@gmail.com>
-
- 31 Jul, 2016 1 commit
-
-
Mathias Fröhlich authored
When a vertex buffer object gets deleted, it is unbound at the VAO. To do this use _mesa_bind_vertex_buffer instead of plain unreferencing the buffer object. This keeps the VAOs internal state consistent. In this case it showed up with gl_vertex_array_object::VertexAttribBufferMask getting out of sync. Signed-off-by:
Mathias Fröhlich <Mathias.Froehlich@web.de> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
- 01 Jun, 2016 1 commit
-
-
Dave Airlie authored
According to GL4.5 spec: An INVALID_OPERATION error is generated if any part of the speci- fied buffer range is mapped with MapBufferRange or MapBuffer (see sec- tion 6.3), unless it was mapped with MAP_PERSISTENT_BIT set in the Map- BufferRange access flags. So we should use the if range is mapped path. This fixes: GL45-CTS.buffer_storage.map_persistent_buffer_sub_data Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com> Cc: "12.0, 11.2" <mesa-stable@lists.freedesktop.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 24 May, 2016 2 commits
-
-
Brian Paul authored
All the other error messages use decimal. Let's be consistent. Reviewed-by:
Anuj Phogat <anuj.phogat@gmail.com>
-
Brian Paul authored
Reviewed-by:
Anuj Phogat <anuj.phogat@gmail.com>
-
- 20 May, 2016 1 commit
-
-
Matt Turner authored
We were locking the Shared->Mutex and then using calling functions like _mesa_HashInsert that do additional per-hash-table locking internally. Instead just lock each hash-table's mutex and use functions like _mesa_HashInsertLocked and the new _mesa_HashRemoveLocked. In order to do this, we need to remove the locking from _mesa_HashFindFreeKeyBlock since it will always be called with the per-hash-table lock taken. Reviewed-by:
Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- 04 May, 2016 1 commit
-
-
Brian Paul authored
Silences warnings with 32-bit Linux gcc builds and MinGW which doesn't recognize the ‘t’ conversion character. Reviewed-by:
Sinclair Yeh <syeh@vmware.com>
-
- 29 Mar, 2016 1 commit
-
-
Ilia Mirkin authored
Allow ES 3.1 contexts to access the texture buffer functionality. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
- 12 Feb, 2016 1 commit
-
-
Ilia Mirkin authored
Similar to commit dd9d2963 (mesa: AtomicBufferBindings should be initialized to zero.), we should reset these to zero when unbinding. This fixes a number of dEQP failures due to cross-test pollution. The tests properly unbound everything, but when querying the values again, the expectation was that they would be 0. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Francisco Jerez <currojerez@riseup.net>
-
- 05 Feb, 2016 1 commit
-
-
Rafal Mielniczuk authored
Add QueryBuffer and initialise it to NullBufferObj on start Signed-off-by:
Rafal Mielniczuk <rafal.mielniczuk2@gmail.com> [imirkin: also release QueryBuffer on free] Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
- 03 Feb, 2016 4 commits
-
-
Nicolai Hähnle authored
When set to a truish value, this globally disables the minmax cache for all buffer objects. No #ifdef DEBUG guards because this option can be interesting for benchmarking. Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
Some games developers are unaware that an index buffer in a VBO still needs to be read by the CPU if some varying data comes from a user pointer (unless glDrawRangeElements and friends are used). This is particularly bad when they tell us that the index buffer should live in VRAM. This cache helps, e.g. lifting This War Of Mine (a particularly bad offender) from under 10fps to slightly over 20fps on a Carrizo. Note that there is nothing prohibiting a user from rendering from multiple threads simultaneously with the same index buffer, hence the locking. (The internal buffer map taken for the buffer still leads to a race, but at least the locks are a move in the right direction.) v2: disable the cache on USAGE_TEXTURE_BUFFER as well (Chris Forbes) v3: - use bool instead of GLboolean for MinMaxCacheDirty (Ian Romanick) - replace the sticky USAGE_PERSISTENT_WRITE_MAP bit by a direct AccessFlags check Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> (v2) Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
Note that the conversion of the clear data (when data != NULL) can fail due to an out of memory condition, but it does not check any error conditions mandated by the spec. Therefore, it is safe to skip when size == 0. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
We will want to disable minmax index caching for buffers that are used in this way. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
- 19 Jan, 2016 1 commit
-
-
Marta Löfstedt authored
Sanity check of BindVertexBuffer for OpenGL ES in _mesa_handle_bind_buffer_gen breaks OpenGL ES 2 conformance. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93426Signed-off-by:
Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by:
Tapani Pälli <tapani.palli@intel.com>
-
- 14 Jan, 2016 2 commits
-
-
Nicolai Hähnle authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Nicolai Hähnle authored
Change the check to be in line with what the quoted spec fragment says. I have sent out a piglit test for this as well. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
- 09 Jan, 2016 4 commits
-
-
Nicolai Hähnle authored
Reduced code duplication should make the code more maintainable. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Nicolai Hähnle authored
Reduced code duplication should make the code more maintainable. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Nicolai Hähnle authored
Reduced code duplication should make the code more maintainable. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Nicolai Hähnle authored
Reduced code duplication should make the code more maintainable. Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
- 07 Jan, 2016 2 commits
-
-
Ilia Mirkin authored
Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Nicolai Hähnle authored
gl_buffer_object has grown more complicated and requires cleanup. Using this function from drivers will be more future-proof. Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
- 05 Jan, 2016 1 commit
-
-
Ilia Mirkin authored
This reverts commit 8cf2e892. It's entirely bogus to attempt to store anything about the binding in the buffer object itself, which might be bound any number of times. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Cc: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by:
Samuel Iglesias Gonsálvez <siglesias@igalia.com>
-
- 04 Jan, 2016 1 commit
-
-
Samuel Iglesias Gonsálvez authored
Commit 5bb5eeea fixes a bug indicating that the surfaces should have the API buffer size. Hovewer it picked the wrong value. This patch adds a new variable, which takes into account glBindBufferRange() values. This patch fixes the following CTS regressions: ES31-CTS.shader_storage_buffer_object.advanced-unsizedArrayLength-cs-std430-vec-bindrangeOffset ES31-CTS.shader_storage_buffer_object.advanced-unsizedArrayLength-cs-std430-vec-bindrangeSize Signed-off-by:
Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by:
Marta Lofstedt <marta.lofstedt@intel.com>
-
- 02 Jan, 2016 1 commit
-
-
Jordan Justen authored
Reported-by:
Dieter Nützel <Dieter@nuetzel-hh.de> Signed-off-by:
Jordan Justen <jordan.l.justen@intel.com>
-
- 01 Jan, 2016 1 commit
-
-
Jordan Justen authored
v2: * Add braces '{}' when the _mesa_debug call spans multiple lines (Ken) Signed-off-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
- 09 Dec, 2015 2 commits
-
-
Brian Paul authored
We need a different ID pointer for each call site. Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Brian Paul authored
When a buffer is created with GL_STATIC_DRAW, its contents should not be changed frequently. But that's exactly what one application I'm debugging does. This patch adds code to try to detect inefficient buffer use in a couple places. The GL_ARB_debug_output mechanism is used to report the issue. NVIDIA's driver detects these sort of things too. Other types of inefficient buffer use could also be detected in the future. Reviewed-by:
José Fonseca <jfonseca@vmware.com>
-
- 25 Sep, 2015 2 commits
-
-
Matt Turner authored
Reviewed-by:
Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Jordan Justen authored
v2: * Use _mesa_has_compute_shaders (Ilia) Signed-off-by:
Jordan Justen <jordan.l.justen@intel.com> Reviewed-by:
Kristian Høgsberg <krh@bitplanet.net>
-
- 22 Sep, 2015 2 commits
-
-
Brian Paul authored
Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Marta Löfstedt authored
According to OpenGL ES 3.1 specification 10.3.1: "An INVALID_OPERATION error is generated if buffer is not zero or a name returned from a previous call to GenBuffers, or if such a name has since been deleted with DeleteBuffers." This error check was previously limited to OpenGL Core. Signed-off-by:
Marta Lofstedt <marta.lofstedt@intel.com>
-