File tree Expand file tree Collapse file tree
src/rendering/rasterizer/vulkan/shader/src/slang Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565#define MAX_RAW_SCALE 20 . 0 f
6666
6767// subtile culling in rasterization
68- #if TILE_HEIGHT >= 16 && TILE_WIDTH >= 16
69- #define SUBTILE_HEIGHT 4
70- #define SUBTILE_WIDTH 8
71- #else
72- #define SUBTILE_HEIGHT 0
73- #define SUBTILE_WIDTH 0
74- #endif
68+ #define SUBTILE_HEIGHT 0
69+ #define SUBTILE_WIDTH 0
7570#define SUBTILE_SIZE (SUBTILE_HEIGHT* SUBTILE_WIDTH)
7671
7772
Original file line number Diff line number Diff line change @@ -983,8 +983,8 @@ float2 ellipse_range_bound(
983983 float bv0 = - b* v0, bv1 = - b* v1;
984984
985985 float inv_a = 1 . 0 f / a;
986- float x0 = inv_a * (bv0 - sqrt(bv0* bv0 - a* (c* v0* v0- 1 . f )));
987- float x1 = inv_a * (bv1 + sqrt(bv1* bv1 - a* (c* v1* v1- 1 . f )));
986+ float x0 = inv_a * (bv0 - sqrt(max( bv0* bv0 - a* (c* v0* v0- 1 . f ), 0 . 0 f )));
987+ float x1 = inv_a * (bv1 + sqrt(max( bv1* bv1 - a* (c* v1* v1- 1 . f ), 0 . 0 f )));
988988
989989 return float2(x0, x1);
990990
You can’t perform that action at this time.
0 commit comments