[Mesa-dev] [PATCH] radeonsi: avoid divide by 0 in new TCS code.

Marek Olšák maraeo at gmail.com
Fri May 27 10:33:06 UTC 2016

On Fri, May 27, 2016 at 9:57 AM, Bas Nieuwenhuizen
<bas at basnieuwenhuizen.nl> wrote:
> I don't think this is the right approach as we shouldn't be getting 0
> in the first place. At least for LDS the output size shoudl be at
> least 2 as we load the inner & outer tess factors while writing them
> to the tessellation factor ring.
> We could just do
> num_tcs_patch_outputs = MAX2(num_tcs_patch_outputs, 2);
> but I am curious what the CTS expects, as I suspect we are essentially
> writing bogus tess factors.

He said it's a division by zero. It looks like the shader doesn't have
any inputs or outputs.


More information about the mesa-dev mailing list