mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
i965: use setup attributes as inputs when allocating registers
for WM payload. fix #10767
This commit is contained in:
parent
1202c434d9
commit
4813946d36
3 changed files with 4 additions and 3 deletions
|
|
@ -688,5 +688,7 @@ brw_context( GLcontext *ctx )
|
|||
return (struct brw_context *)ctx;
|
||||
}
|
||||
|
||||
#define DO_SETUP_BITS ((1<<(FRAG_ATTRIB_MAX)) - 1)
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue