- 18 Nov, 2020 1 commit
-
-
Marek Olšák authored
This removes 8 bytes from pipe_draw_info (think u_threaded_context) and a lot of info->indirect pointer indirections. Reviewed-by:
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <!7441>
-
- 22 Sep, 2020 1 commit
-
-
Marek Olšák authored
Acked-by:
Eric Anholt <eric@anholt.net> Part-of: <!5749>
-
- 18 Aug, 2020 2 commits
-
-
Erik Faye-Lund authored
This adds a config-option to u_primconvert that translates primitive restart values to the max-values for the index size. This allows us to support arbitrary primitive-restart indices on hardware that only supports fixed restart-indices. Reviewed-By:
Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com> Part-of: <!5976>
-
Erik Faye-Lund authored
This struct allows us to pass the configuration as a struct, which can more easily be extended to take more arguemnts as long as we're careful about zero-initialization. We keep the old create-function, but implement it as a wrapper on top so we don't have to update all existing call-sites right now. Reviewed-By:
Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by:
Gert Wollny <gert.wollny@collabora.com> Part-of: <!5976>
-
- 10 May, 2017 1 commit
-
-
Marek Olšák authored
pipe_draw_info::indexed is replaced with index_size. index_size == 0 means non-indexed. Instead of pipe_index_buffer::offset, pipe_draw_info::start is used. For indexed indirect draws, pipe_draw_info::start is added to the indirect start. This is the only case when "start" affects indirect draws. pipe_draw_info::index is a union. Use either index::resource or index::user depending on the value of pipe_draw_info::has_user_indices. v2: fixes for nine, svga
-
- 04 Apr, 2017 1 commit
-
-
Marek Olšák authored
Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- 14 Feb, 2017 1 commit
-
-
Marek Olšák authored
Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com> Tested-by:
Edmondo Tommasina <edmondo.tommasina@gmail.com> Tested-by:
Charmaine Lee <charmainel@vmware.com>
-
- 02 Jan, 2016 3 commits
-
-
Marek Olšák authored
Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com>
-
Marek Olšák authored
Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com>
-
Marek Olšák authored
The fixed alignment of u_upload_mgr will go away. This is the first step. The motivation is that one u_upload_mgr can have multiple users, each allocating from the same buffer, but requiring a different alignment. Reviewed-by:
Nicolai Hähnle <nicolai.haehnle@amd.com>
-
- 18 Apr, 2015 1 commit
-
-
Ilia Mirkin authored
This should match to how drivers program hardware. flatshade relates to whether color inputs are interpolated, not the provoking vertex convention. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by:
Rob Clark <robclark@freedesktop.org>
-
- 19 Mar, 2015 1 commit
-
-
Dave Airlie authored
This add primitive restart support to the prim conversion. This involves changing the API for the translate functions as we need to pass the prim restart index and the original number of indices into the translate functions. primitive restart is support for quads, quad strips and polygons. This deal with the case where the actual number of output primitives is less than the initially calculated number, by filling the rest of the output primitives with the restart index, the other option is to reduce the output prim number, but that will make the generator code a bit messier. Reviewed-by:
Brian Paul <brianp@vmware.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 31 Dec, 2014 1 commit
-
-
Eric Anholt authored
v2: Conditionalize it on having done any uploads (Turns out u_upload_destroy() isn't safe with a NULL arg). Reviewed-by: Dave Airlie <airlied@redhat.com> (v1)
-
- 05 Dec, 2014 4 commits
-
-
Jose Fonseca authored
Matches what u_vbuf_get_minmax_index() does. Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Ilia Mirkin authored
Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Rob Clark <robclark@freedesktop.org>
-
Ilia Mirkin authored
Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Rob Clark <robclark@freedesktop.org>
-
Ilia Mirkin authored
The index_bias (aka base_vertex) applies to the downstream draw just as much, since the actual index values are never modified. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Rob Clark <robclark@freedesktop.org>
-
- 02 Sep, 2014 2 commits
-
-
Eric Anholt authored
tex-miplevel-selection was hammering my memory manager with primconverts on individual quads. This gets all those converted IBs packed into larger IBs. Reviewed-by:
Rob Clark <robclark@freedesktop.org>
-
Eric Anholt authored
gcc isn't detecting that src is set before used, since both are under if (info->indexed). Reviewed-by:
Rob Clark <robclark@freedesktop.org>
-
- 09 Aug, 2014 1 commit
-
-
Eric Anholt authored
These values are supposed to be the minimum/maximum index values used to read from the vertex buffers. This code either copies index values out of the old IB (so, same min/max as the original draw call), or generates a new IB (using index values between the start and the start + count of the old array draw info, which just happens to be what min/max_index are set to by st_draw.c). We were incorrectly setting the max_index in the converting-from-glDrawArrays case to the start vertex plus the number of vertices generated in the new IB, which broke QUADS primitive conversion on VC4 (where max_index really has to be correct, or the kernel might reject your draw call due to buffer overflow). Reviewed-by: Rob Clark <robclark@freedesktop.org> (from verbal description of the patch)
-
- 03 Feb, 2014 1 commit
-
-
Brian Paul authored
To match the CALLOC_STRUCT() call. Cc: "10.0, 10.1" <mesa-stable@lists.freedesktop.org> Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
- 29 Oct, 2013 1 commit
-
-
Rob Clark authored
A convenient front end to indices generate/translate code, for emulating primitives which are not supported natively by the driver. This handles saving/restoring index buffer state, etc. Signed-off-by:
Rob Clark <robclark@freedesktop.org> Reviewed-by:
Brian Paul <brianp@vmware.com>
-