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

2011-09-19 Thread Eric Anholt
On Fri, 09 Sep 2011 20:18:02 -0700, Kenneth Graunke wrote: > On 09/09/2011 10:07 AM, Eric Anholt wrote: > > On Thu, 8 Sep 2011 15:49:23 -0700, Kenneth Graunke > > wrote: > >> + /* Initialize the rest of u/v/r with 0.0, for safety */ > >> + for (int i = ir->coordinate->type->vector_el

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

2011-09-09 Thread Kenneth Graunke
On 09/09/2011 10:07 AM, Eric Anholt wrote: > On Thu, 8 Sep 2011 15:49:23 -0700, Kenneth Graunke > 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_mr

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

2011-09-09 Thread Eric Anholt
On Thu, 8 Sep 2011 15:49:23 -0700, Kenneth Graunke 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)); > + } >

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

2011-09-08 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_emit.cpp|5 + src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 15 +++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965