Re: [Mesa-dev] [PATCH v2] swr: Correct texture allocation and limit max size to 2GB

2017-11-30 Thread Kyriazis, George
Looks good. Reviewed-By: George Kyriazis > On Nov 30, 2017, at 11:51 AM, Bruce Cherniak > wrote: This patch fixes piglit tex3d-maxsize by correcting 4 things: The total_size

[Mesa-dev] [PATCH v2] swr: Correct texture allocation and limit max size to 2GB

2017-11-30 Thread Bruce Cherniak
This patch fixes piglit tex3d-maxsize by correcting 4 things: The total_size calculation was using 32-bit math, therefore a >4GB allocation request overflowed and was not returning false (unsupported). Changed AlignedMalloc arguments from "unsigned int" to size_t, to handle >4GB allocations.