[Mesa-dev] [PATCH 3/3] i965/fs: Implement texelFetch() on Gen4.

Eric Anholt eric at anholt.net
Fri Sep 9 10:07:24 PDT 2011


On Thu,  8 Sep 2011 15:49:23 -0700, Kenneth Graunke <kenneth at whitecape.org> wrote:
> +      /* Initialize the rest of u/v/r with 0.0, for safety */
> +      for (int i = ir->coordinate->type->vector_elements; i < 3; i++) {
> +	 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i * 2), fs_reg(0.0f));
> +      }
> +

Didn't we decide that it was not just "for safety", but that that text
about out of bounds returning 0 was what made that code required?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110909/f79da512/attachment.pgp>


More information about the mesa-dev mailing list