mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
lavapipe: Remove trailing whitespace
Signed-off-by: spencer-lunarg <spencer@lunarg.com> Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38223>
This commit is contained in:
parent
faddb5d497
commit
17d8a5d8ae
23 changed files with 75 additions and 75 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
#include "pipe/p_defines.h"
|
#include "pipe/p_defines.h"
|
||||||
#include "gallivm/lp_bld.h"
|
#include "gallivm/lp_bld.h"
|
||||||
#include "gallivm/lp_bld_init.h"
|
#include "gallivm/lp_bld_init.h"
|
||||||
|
|
||||||
#include "util/format/u_formats.h"
|
#include "util/format/u_formats.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
* Copyright 2009 VMware, Inc. All Rights Reserved.
|
* Copyright 2009 VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the
|
* copy of this software and associated documentation files (the
|
||||||
* "Software"), to deal in the Software without restriction, including
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/* Author:
|
/* Author:
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
* No masking, no scissor (clear entire buffer).
|
* No masking, no scissor (clear entire buffer).
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
llvmpipe_clear(struct pipe_context *pipe,
|
llvmpipe_clear(struct pipe_context *pipe,
|
||||||
unsigned buffers,
|
unsigned buffers,
|
||||||
const struct pipe_scissor_state *scissor_state,
|
const struct pipe_scissor_state *scissor_state,
|
||||||
const union pipe_color_union *color,
|
const union pipe_color_union *color,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the
|
* copy of this software and associated documentation files (the
|
||||||
* "Software"), to deal in the Software without restriction, including
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/* Author:
|
/* Author:
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the
|
* copy of this software and associated documentation files (the
|
||||||
* "Software"), to deal in the Software without restriction, including
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/* Author:
|
/* Author:
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ lp_fence_reference(struct lp_fence **ptr,
|
||||||
if (pipe_reference(&old->reference, &f->reference)) {
|
if (pipe_reference(&old->reference, &f->reference)) {
|
||||||
lp_fence_destroy(old);
|
lp_fence_destroy(old);
|
||||||
}
|
}
|
||||||
|
|
||||||
*ptr = f;
|
*ptr = f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2010 VMware, Inc.
|
* Copyright 2010 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the
|
* copy of this software and associated documentation files (the
|
||||||
* "Software"), to deal in the Software without restriction, including
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2010 VMware, Inc. All Rights Reserved.
|
* Copyright 2010 VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
#include "lp_limits.h"
|
#include "lp_limits.h"
|
||||||
#include "lp_memory.h"
|
#include "lp_memory.h"
|
||||||
|
|
||||||
/* A single dummy tile used in a couple of out-of-memory situations.
|
/* A single dummy tile used in a couple of out-of-memory situations.
|
||||||
*/
|
*/
|
||||||
alignas(LP_MIN_VECTOR_ALIGN)
|
alignas(LP_MIN_VECTOR_ALIGN)
|
||||||
uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
|
uint8_t lp_dummy_tile[TILE_SIZE * TILE_SIZE * 4];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2010 VMware, Inc. All Rights Reserved.
|
* Copyright 2010 VMware, Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
|
@ -9,11 +9,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ lp_print_counters(void)
|
||||||
debug_printf("llvmpipe: nr_rectangles: %9u\n", lp_count.nr_rects);
|
debug_printf("llvmpipe: nr_rectangles: %9u\n", lp_count.nr_rects);
|
||||||
debug_printf("llvmpipe: nr_culled_rectangles: %9u\n", lp_count.nr_culled_rects);
|
debug_printf("llvmpipe: nr_culled_rectangles: %9u\n", lp_count.nr_culled_rects);
|
||||||
|
|
||||||
total_64 = (lp_count.nr_empty_64 +
|
total_64 = (lp_count.nr_empty_64 +
|
||||||
lp_count.nr_fully_covered_64 +
|
lp_count.nr_fully_covered_64 +
|
||||||
lp_count.nr_partially_covered_64);
|
lp_count.nr_partially_covered_64);
|
||||||
|
|
||||||
|
|
@ -75,7 +75,7 @@ lp_print_counters(void)
|
||||||
debug_printf("llvmpipe: nr_partially_covered_64x64: %9u (%3.0f%% of %u)\n", lp_count.nr_partially_covered_64, p3, total_64);
|
debug_printf("llvmpipe: nr_partially_covered_64x64: %9u (%3.0f%% of %u)\n", lp_count.nr_partially_covered_64, p3, total_64);
|
||||||
debug_printf("llvmpipe: nr_empty_64x64: %9u (%3.0f%% of %u)\n", lp_count.nr_empty_64, p1, total_64);
|
debug_printf("llvmpipe: nr_empty_64x64: %9u (%3.0f%% of %u)\n", lp_count.nr_empty_64, p1, total_64);
|
||||||
|
|
||||||
total_16 = (lp_count.nr_empty_16 +
|
total_16 = (lp_count.nr_empty_16 +
|
||||||
lp_count.nr_fully_covered_16 +
|
lp_count.nr_fully_covered_16 +
|
||||||
lp_count.nr_partially_covered_16);
|
lp_count.nr_partially_covered_16);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* Copyright 2010 VMware, Inc.
|
* Copyright 2010 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the
|
* copy of this software and associated documentation files (the
|
||||||
* "Software"), to deal in the Software without restriction, including
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/* Authors:
|
/* Authors:
|
||||||
|
|
|
||||||
|
|
@ -1143,7 +1143,7 @@ try_update_scene_state(struct lp_setup_context *setup)
|
||||||
sizeof setup->fs.current.jit_context);
|
sizeof setup->fs.current.jit_context);
|
||||||
memcpy(&stored->jit_resources,
|
memcpy(&stored->jit_resources,
|
||||||
&setup->fs.current.jit_resources,
|
&setup->fs.current.jit_resources,
|
||||||
sizeof setup->fs.current.jit_resources);
|
sizeof setup->fs.current.jit_resources);
|
||||||
|
|
||||||
stored->variant = setup->fs.current.variant;
|
stored->variant = setup->fs.current.variant;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -505,7 +505,7 @@ try_setup_line(struct lp_setup_context *setup,
|
||||||
* the comparisons against zero are not mirroring what actually happens
|
* the comparisons against zero are not mirroring what actually happens
|
||||||
* when rasterizing using the plane equations).
|
* when rasterizing using the plane equations).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool will_draw_start;
|
bool will_draw_start;
|
||||||
bool will_draw_end;
|
bool will_draw_end;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/* Authors: Keith Whitwell <keithw@vmware.com>
|
/* Authors: Keith Whitwell <keithw@vmware.com>
|
||||||
|
|
@ -126,7 +126,7 @@ llvmpipe_set_framebuffer_state(struct pipe_context *,
|
||||||
void
|
void
|
||||||
llvmpipe_update_fs(struct llvmpipe_context *lp);
|
llvmpipe_update_fs(struct llvmpipe_context *lp);
|
||||||
|
|
||||||
void
|
void
|
||||||
llvmpipe_update_setup(struct llvmpipe_context *lp);
|
llvmpipe_update_setup(struct llvmpipe_context *lp);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -367,7 +367,7 @@ llvmpipe_nir_is_linear_compat(struct nir_shader *shader,
|
||||||
|
|
||||||
if (util_bitcount64(shader->info.inputs_read) > LP_MAX_LINEAR_INPUTS)
|
if (util_bitcount64(shader->info.inputs_read) > LP_MAX_LINEAR_INPUTS)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!shader->info.outputs_written || shader->info.fs.color_is_dual_source ||
|
if (!shader->info.outputs_written || shader->info.fs.color_is_dual_source ||
|
||||||
(shader->info.outputs_written & ~BITFIELD64_BIT(FRAG_RESULT_DATA0)))
|
(shader->info.outputs_written & ~BITFIELD64_BIT(FRAG_RESULT_DATA0)))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2009 VMware, Inc.
|
* Copyright 2009 VMware, Inc.
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the
|
* copy of this software and associated documentation files (the
|
||||||
* "Software"), to deal in the Software without restriction, including
|
* "Software"), to deal in the Software without restriction, including
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
/* Authors: Keith Whitwell <keithw@vmware.com>
|
/* Authors: Keith Whitwell <keithw@vmware.com>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
*
|
*
|
||||||
* Copyright 2007 VMware, Inc.
|
* Copyright 2007 VMware, Inc.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
|
|
@ -10,11 +10,11 @@
|
||||||
* distribute, sub license, and/or sell copies of the Software, and to
|
* distribute, sub license, and/or sell copies of the Software, and to
|
||||||
* permit persons to whom the Software is furnished to do so, subject to
|
* permit persons to whom the Software is furnished to do so, subject to
|
||||||
* the following conditions:
|
* the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice (including the
|
* The above copyright notice and this permission notice (including the
|
||||||
* next paragraph) shall be included in all copies or substantial portions
|
* next paragraph) shall be included in all copies or substantial portions
|
||||||
* of the Software.
|
* of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#ifndef LP_TEX_SAMPLE_H
|
#ifndef LP_TEX_SAMPLE_H
|
||||||
|
|
|
||||||
|
|
@ -1108,12 +1108,12 @@ llvmpipe_get_texel_offset(struct pipe_resource *resource,
|
||||||
) * 64 * 1024;
|
) * 64 * 1024;
|
||||||
|
|
||||||
offset += (
|
offset += (
|
||||||
x % sparse_tile_size[0] +
|
x % sparse_tile_size[0] +
|
||||||
(y % sparse_tile_size[1]) * sparse_tile_size[0] +
|
(y % sparse_tile_size[1]) * sparse_tile_size[0] +
|
||||||
(z % sparse_tile_size[2]) * sparse_tile_size[0] * sparse_tile_size[1]
|
(z % sparse_tile_size[2]) * sparse_tile_size[0] * sparse_tile_size[1]
|
||||||
) * util_format_get_blocksize(resource->format);
|
) * util_format_get_blocksize(resource->format);
|
||||||
|
|
||||||
return offset + lpr->mip_offsets[level] + lpr->img_stride[level] * layer;
|
return offset + lpr->mip_offsets[level] + lpr->img_stride[level] * layer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -313,7 +313,7 @@ lvp_gather_subtree(const uint8_t *output, uint32_t offset, uint32_t *leaf_nodes,
|
||||||
|
|
||||||
static uint32_t
|
static uint32_t
|
||||||
lvp_rebuild_subtree(const uint8_t *output, uint32_t *leaf_nodes, vk_aabb *leaf_bounds,
|
lvp_rebuild_subtree(const uint8_t *output, uint32_t *leaf_nodes, vk_aabb *leaf_bounds,
|
||||||
uint32_t *internal_nodes, uint32_t leaf_node_count,
|
uint32_t *internal_nodes, uint32_t leaf_node_count,
|
||||||
uint32_t *internal_node_index)
|
uint32_t *internal_node_index)
|
||||||
{
|
{
|
||||||
uint32_t child_nodes[2];
|
uint32_t child_nodes[2];
|
||||||
|
|
@ -571,7 +571,7 @@ lvp_encode_as(struct vk_acceleration_structure *dst, VkDeviceAddress intermediat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The BVH exceeds the maximum depth supported by the traversal stack,
|
/* The BVH exceeds the maximum depth supported by the traversal stack,
|
||||||
* flatten the offending parts of the tree.
|
* flatten the offending parts of the tree.
|
||||||
*/
|
*/
|
||||||
if (max_node_depth >= (geometry_type == VK_GEOMETRY_TYPE_INSTANCES_KHR ? LVP_MAX_TLAS_DEPTH : LVP_MAX_BLAS_DEPTH))
|
if (max_node_depth >= (geometry_type == VK_GEOMETRY_TYPE_INSTANCES_KHR ? LVP_MAX_TLAS_DEPTH : LVP_MAX_BLAS_DEPTH))
|
||||||
|
|
|
||||||
|
|
@ -1093,7 +1093,7 @@ lvp_get_properties(const struct lvp_physical_device *device, struct vk_propertie
|
||||||
.filterMinmaxSingleComponentFormats = true,
|
.filterMinmaxSingleComponentFormats = true,
|
||||||
|
|
||||||
.maxTimelineSemaphoreValueDifference = UINT64_MAX,
|
.maxTimelineSemaphoreValueDifference = UINT64_MAX,
|
||||||
.framebufferIntegerColorSampleCounts = VK_SAMPLE_COUNT_1_BIT, /* LVP_SAMPLE_COUNTS? */
|
.framebufferIntegerColorSampleCounts = VK_SAMPLE_COUNT_1_BIT, /* LVP_SAMPLE_COUNTS? */
|
||||||
|
|
||||||
/* Vulkan 1.3 */
|
/* Vulkan 1.3 */
|
||||||
.minSubgroupSize = lp_native_vector_width / 32,
|
.minSubgroupSize = lp_native_vector_width / 32,
|
||||||
|
|
|
||||||
|
|
@ -667,7 +667,7 @@ lvp_handle_triangle_intersection(nir_builder *b,
|
||||||
if (state->primitive_addr) {
|
if (state->primitive_addr) {
|
||||||
prev_primitive_addr = nir_load_var(b, state->primitive_addr);
|
prev_primitive_addr = nir_load_var(b, state->primitive_addr);
|
||||||
nir_store_var(b, state->primitive_addr, intersection->base.node_addr, 0x1);
|
nir_store_var(b, state->primitive_addr, intersection->base.node_addr, 0x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
nir_store_scratch(b, intersection->barycentrics, barycentrics_offset);
|
nir_store_scratch(b, intersection->barycentrics, barycentrics_offset);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ lower_vri_instr(struct nir_builder *b, nir_instr *instr, void *data_cb)
|
||||||
case nir_intrinsic_image_deref_samples:
|
case nir_intrinsic_image_deref_samples:
|
||||||
lower_image_intrinsic(b, intrin, data_cb);
|
lower_image_intrinsic(b, intrin, data_cb);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case nir_intrinsic_load_push_constant:
|
case nir_intrinsic_load_push_constant:
|
||||||
lower_push_constant(b, intrin, data_cb);
|
lower_push_constant(b, intrin, data_cb);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -274,15 +274,15 @@ lvp_build_intersect_ray_tri(nir_builder *b, nir_def **node_data, nir_def *ray_tm
|
||||||
/* When an edge is hit, we have to ensure that it is not hit twice in case it is shared.
|
/* When an edge is hit, we have to ensure that it is not hit twice in case it is shared.
|
||||||
*
|
*
|
||||||
* Vulkan 1.4.322, Section 40.1.1 Watertightness:
|
* Vulkan 1.4.322, Section 40.1.1 Watertightness:
|
||||||
*
|
*
|
||||||
* Any set of two triangles with two shared vertices that were specified in the same
|
* Any set of two triangles with two shared vertices that were specified in the same
|
||||||
* winding order in each triangle have a shared edge defined by those vertices.
|
* winding order in each triangle have a shared edge defined by those vertices.
|
||||||
*
|
*
|
||||||
* This means we can decide which triangle should intersect by comparing the shared edge
|
* This means we can decide which triangle should intersect by comparing the shared edge
|
||||||
* to two arbitrary directions because the shared edges are antiparallel. The triangle
|
* to two arbitrary directions because the shared edges are antiparallel. The triangle
|
||||||
* vertices are transformed so the ray direction is (0 0 1). Therefore it makes sense to
|
* vertices are transformed so the ray direction is (0 0 1). Therefore it makes sense to
|
||||||
* choose (1 0 0) and (0 1 0) as reference directions.
|
* choose (1 0 0) and (0 1 0) as reference directions.
|
||||||
*
|
*
|
||||||
* Hitting edges is extremely rare so an if should be worth.
|
* Hitting edges is extremely rare so an if should be worth.
|
||||||
*/
|
*/
|
||||||
nir_def *is_edge_a = nir_feq_imm(b, u, 0.0f);
|
nir_def *is_edge_a = nir_feq_imm(b, u, 0.0f);
|
||||||
|
|
@ -302,18 +302,18 @@ lvp_build_intersect_ray_tri(nir_builder *b, nir_def **node_data, nir_def *ray_tm
|
||||||
*
|
*
|
||||||
* Any set of two or more triangles where all triangles have one vertex with an
|
* Any set of two or more triangles where all triangles have one vertex with an
|
||||||
* identical position value, that vertex is a shared vertex.
|
* identical position value, that vertex is a shared vertex.
|
||||||
*
|
*
|
||||||
* Since the no double hit/miss requirement of a shared vertex is only formulated for
|
* Since the no double hit/miss requirement of a shared vertex is only formulated for
|
||||||
* closed fans
|
* closed fans
|
||||||
*
|
*
|
||||||
* Implementations should not double-hit or miss when a ray intersects a shared edge,
|
* Implementations should not double-hit or miss when a ray intersects a shared edge,
|
||||||
* or a shared vertex of a closed fan.
|
* or a shared vertex of a closed fan.
|
||||||
*
|
*
|
||||||
* it is possible to choose an arbitrary direction n that defines which triangle in the
|
* it is possible to choose an arbitrary direction n that defines which triangle in the
|
||||||
* closed fan should intersect the shared vertex with the ray.
|
* closed fan should intersect the shared vertex with the ray.
|
||||||
*
|
*
|
||||||
* All edges that include the above vertex are shared edges.
|
* All edges that include the above vertex are shared edges.
|
||||||
*
|
*
|
||||||
* Implies that all triangles have the same winding order. It is therefore sufficiant
|
* Implies that all triangles have the same winding order. It is therefore sufficiant
|
||||||
* to choose the triangle where the other vertices are on both sides of a plane
|
* to choose the triangle where the other vertices are on both sides of a plane
|
||||||
* perpendicular to n (relying on winding order to get one instead of two triangles
|
* perpendicular to n (relying on winding order to get one instead of two triangles
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue