mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
st/mesa: use BITFIELD64_BIT() macro in a few more places
This commit is contained in:
parent
d350ef1682
commit
aa878f94ab
3 changed files with 4 additions and 4 deletions
|
|
@ -187,7 +187,7 @@ get_pixel_transfer_program(struct gl_context *ctx, const struct state_key *key)
|
|||
inst[ic].TexSrcTarget = TEXTURE_2D_INDEX;
|
||||
ic++;
|
||||
fp->Base.InputsRead = (1 << FRAG_ATTRIB_TEX0);
|
||||
fp->Base.OutputsWritten = (1 << FRAG_RESULT_COLOR);
|
||||
fp->Base.OutputsWritten = BITFIELD64_BIT(FRAG_RESULT_COLOR);
|
||||
fp->Base.SamplersUsed = 0x1; /* sampler 0 (bit 0) is used */
|
||||
|
||||
if (key->scaleAndBias) {
|
||||
|
|
|
|||
|
|
@ -213,9 +213,9 @@ st_make_drawpix_z_stencil_program(struct st_context *st,
|
|||
p->InputsRead = FRAG_BIT_TEX0 | FRAG_BIT_COL0;
|
||||
p->OutputsWritten = 0;
|
||||
if (write_depth)
|
||||
p->OutputsWritten |= (1 << FRAG_RESULT_DEPTH);
|
||||
p->OutputsWritten |= BITFIELD64_BIT(FRAG_RESULT_DEPTH);
|
||||
if (write_stencil)
|
||||
p->OutputsWritten |= (1 << FRAG_RESULT_STENCIL);
|
||||
p->OutputsWritten |= BITFIELD64_BIT(FRAG_RESULT_STENCIL);
|
||||
|
||||
p->SamplersUsed = 0x1; /* sampler 0 (bit 0) is used */
|
||||
if (write_stencil)
|
||||
|
|
|
|||
|
|
@ -798,7 +798,7 @@ st_translate_geometry_program(struct st_context *st,
|
|||
* mapping and the semantic information for each output.
|
||||
*/
|
||||
for (attr = 0; attr < GEOM_RESULT_MAX; attr++) {
|
||||
if (stgp->Base.Base.OutputsWritten & (1 << attr)) {
|
||||
if (stgp->Base.Base.OutputsWritten & BITFIELD64_BIT(attr)) {
|
||||
GLuint slot;
|
||||
|
||||
slot = gs_num_outputs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue