mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
svga: fix prim type check/assignment in translate_indices()
Left over test code spotted by Sinclair. Tested with piglit, Google Earth, Lightsmark, Heaven4, glretraces, etc. Reviewed-by: Sinclair Yeh <syeh@vmware.com>
This commit is contained in:
parent
50359ddb5d
commit
12689efbbe
1 changed files with 2 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ translate_indices(struct svga_hwtnl *hwtnl, struct pipe_resource *src,
|
|||
if (!screen->debug.no_cache_index_buffers) {
|
||||
/* Check if we already have a translated index buffer */
|
||||
if (src_sbuf->translated_indices.buffer &&
|
||||
src_sbuf->translated_indices.orig_prim == PIPE_PRIM_QUADS &&
|
||||
src_sbuf->translated_indices.orig_prim == orig_prim &&
|
||||
src_sbuf->translated_indices.new_prim == gen_prim &&
|
||||
src_sbuf->translated_indices.offset == offset &&
|
||||
src_sbuf->translated_indices.count == orig_nr &&
|
||||
|
|
@ -123,7 +123,7 @@ translate_indices(struct svga_hwtnl *hwtnl, struct pipe_resource *src,
|
|||
* again in the future.
|
||||
*/
|
||||
pipe_resource_reference(&src_sbuf->translated_indices.buffer, dst);
|
||||
src_sbuf->translated_indices.orig_prim = PIPE_PRIM_QUADS;
|
||||
src_sbuf->translated_indices.orig_prim = orig_prim;
|
||||
src_sbuf->translated_indices.new_prim = gen_prim;
|
||||
src_sbuf->translated_indices.offset = offset;
|
||||
src_sbuf->translated_indices.count = orig_nr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue