[Mesa-dev] [PATCH 1/4] i965: Remove poorly implemented math hstride assertions.
Kenneth Graunke
kenneth at whitecape.org
Fri Jan 31 18:14:21 PST 2014
On 01/23/2014 01:13 PM, Kenneth Graunke wrote:
> I added this assertion in the last revision of the gen8_fs_generator
> patch, and apparently didn't test it enough. Many Piglit tests fail
> this test. The destination hstride is 1, while the source hstride and
> vstride appear to be 0. This sounds like "scalar source" mode, which is
> actually supported.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/gen8_generator.cpp | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/gen8_generator.cpp b/src/mesa/drivers/dri/i965/gen8_generator.cpp
> index ee5f792..8a79701 100644
> --- a/src/mesa/drivers/dri/i965/gen8_generator.cpp
> +++ b/src/mesa/drivers/dri/i965/gen8_generator.cpp
> @@ -299,8 +299,6 @@ gen8_generator::math(unsigned math_function,
> {
> gen8_instruction *inst = next_inst(BRW_OPCODE_MATH);
>
> - assert(dst.hstride == src0.hstride);
> -
> gen8_set_math_function(inst, math_function);
> gen8_set_dst(brw, inst, dst);
> gen8_set_src0(brw, inst, src0);
>
I've replaced this with a patch that updates the assertion properly
(thanks to Matt for helping interpret the docs).
The other 3 patches still could use review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140131/a970b230/attachment.pgp>
More information about the mesa-dev
mailing list