Re: [Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2014-01-16 Thread Roland Scheidegger
Am 16.01.2014 03:09, schrieb Zack Rusin: > It's possible to bind a smaller buffer as a constant buffer, than > what the shader actually uses/requires. This could cause nasty > crashes. This patch adds the architecture to pass the maximum > allowable constant buffer index to the jit to let it make >

Re: [Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2014-01-16 Thread Brian Paul
On 01/15/2014 06:09 PM, Zack Rusin wrote: It's possible to bind a smaller buffer as a constant buffer, than what the shader actually uses/requires. This could cause nasty crashes. This patch adds the architecture to pass the maximum allowable constant buffer index to the jit to let it make sure t

[Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2014-01-15 Thread Zack Rusin
It's possible to bind a smaller buffer as a constant buffer, than what the shader actually uses/requires. This could cause nasty crashes. This patch adds the architecture to pass the maximum allowable constant buffer index to the jit to let it make sure that the constant buffer indices are always w

Re: [Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2013-12-19 Thread Jose Fonseca
Looks great to me. - Original Message - > It's possible to bind a smaller buffer as a constant buffer, than > what the shader actually uses/requires. This could cause nasty > crashes. This patch adds the architecture to pass the maximum > allowable constant buffer index to the jit so let i

Re: [Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2013-12-18 Thread Roland Scheidegger
Am 19.12.2013 01:16, schrieb Zack Rusin: > It's possible to bind a smaller buffer as a constant buffer, than > what the shader actually uses/requires. This could cause nasty > crashes. This patch adds the architecture to pass the maximum > allowable constant buffer index to the jit so let it make >

[Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2013-12-18 Thread Zack Rusin
It's possible to bind a smaller buffer as a constant buffer, than what the shader actually uses/requires. This could cause nasty crashes. This patch adds the architecture to pass the maximum allowable constant buffer index to the jit so let it make sure that the constant buffer indices are always w