i965: use setup attributes as inputs when allocating registers

for WM payload.  fix #10767
This commit is contained in:
Xiang, Haihao 2008-02-14 13:24:27 +08:00
parent 1202c434d9
commit 4813946d36
3 changed files with 4 additions and 3 deletions

View file

@ -688,5 +688,7 @@ brw_context( GLcontext *ctx )
return (struct brw_context *)ctx;
}
#define DO_SETUP_BITS ((1<<(FRAG_ATTRIB_MAX)) - 1)
#endif

View file

@ -43,8 +43,6 @@
#include "brw_sf.h"
#include "brw_state.h"
#define DO_SETUP_BITS ((1<<(FRAG_ATTRIB_MAX)) - 1)
static void compile_sf_prog( struct brw_context *brw,
struct brw_sf_prog_key *key )
{

View file

@ -69,7 +69,8 @@ static void prealloc_reg(struct brw_wm_compile *c,
*/
static void init_registers( struct brw_wm_compile *c )
{
GLuint inputs = FRAG_BIT_WPOS | c->fp_interp_emitted;
struct brw_context *brw = c->func.brw;
GLuint inputs = (brw->vs.prog_data->outputs_written & DO_SETUP_BITS);
GLuint nr_interp_regs = 0;
GLuint i = 0;
GLuint j;