/** Input sizes, calculated from active vertex program.
* One bit per fragment program input attribute.
*/
- GLbitfield input_size_masks[4];
+ GLbitfield64 input_size_masks[4];
/** offsets in the batch to sampler default colors (texture border color)
*/
*/
if (location >= FRAG_ATTRIB_TEX0 &&
location <= FRAG_ATTRIB_TEX7 &&
- k == 3 && !(c->key.proj_attrib_mask & (1 << location))) {
+ k == 3 && !(c->key.proj_attrib_mask
+ & BITFIELD64_BIT(location))) {
emit(BRW_OPCODE_MOV, attr, fs_reg(1.0f));
} else {
struct brw_reg interp = interp_reg(location, k);
}
if (prog->Name != 0)
- key.proj_attrib_mask = 0xffffffff;
+ key.proj_attrib_mask = ~(GLbitfield64) 0;
if (intel->gen < 6)
key.vp_outputs_written |= BITFIELD64_BIT(FRAG_ATTRIB_WPOS);
continue;
if (prog->Name == 0)
- key.proj_attrib_mask |= 1 << i;
+ key.proj_attrib_mask |= BITFIELD64_BIT(i);
if (intel->gen < 6) {
int vp_index = _mesa_vert_result_to_frag_attrib((gl_vert_result) i);
struct tracker {
bool twoside;
GLubyte active[PROGRAM_OUTPUT+1][MAX_PROGRAM_TEMPS];
- GLbitfield size_masks[4]; /**< one bit per fragment program input attrib */
+ GLbitfield64 size_masks[4]; /**< one bit per fragment program input attrib */
};
continue;
switch (get_output_size(t, vertRes)) {
- case 4: t->size_masks[4-1] |= 1 << fragAttrib;
- case 3: t->size_masks[3-1] |= 1 << fragAttrib;
- case 2: t->size_masks[2-1] |= 1 << fragAttrib;
- case 1: t->size_masks[1-1] |= 1 << fragAttrib;
+ case 4: t->size_masks[4-1] |= BITFIELD64_BIT(fragAttrib);
+ case 3: t->size_masks[3-1] |= BITFIELD64_BIT(fragAttrib);
+ case 2: t->size_masks[2-1] |= BITFIELD64_BIT(fragAttrib);
+ case 1: t->size_masks[1-1] |= BITFIELD64_BIT(fragAttrib);
break;
}
}
* that correct code is generated.
*/
if (vp->program.Base.NumInstructions == 0) {
- brw->wm.input_size_masks[0] = ~0;
- brw->wm.input_size_masks[1] = ~0;
- brw->wm.input_size_masks[2] = ~0;
- brw->wm.input_size_masks[3] = ~0;
+ brw->wm.input_size_masks[0] = ~(GLbitfield64) 0;
+ brw->wm.input_size_masks[1] = ~(GLbitfield64) 0;
+ brw->wm.input_size_masks[2] = ~(GLbitfield64) 0;
+ brw->wm.input_size_masks[3] = ~(GLbitfield64) 0;
return;
}
* useful for programs using shaders.
*/
if (ctx->Shader.CurrentFragmentProgram)
- key->proj_attrib_mask = 0xffffffff;
+ key->proj_attrib_mask = ~(GLbitfield64) 0;
else
key->proj_attrib_mask = brw->wm.input_size_masks[4-1];
GLuint clamp_fragment_color:1;
GLuint line_aa:2;
- GLbitfield proj_attrib_mask; /**< one bit per fragment program attribute */
+ GLbitfield64 proj_attrib_mask; /**< one bit per fragment program attribute */
GLushort drawable_height;
GLbitfield64 vp_outputs_written;