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
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
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));
> + }
>
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