mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
r600g: use maths instead of a loop to work out mask.
This is equivalent results with less looping. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
59a402cecd
commit
e251b3903a
1 changed files with 1 additions and 4 deletions
|
|
@ -576,10 +576,7 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
|
|||
if (rctx->alpha_ref_dirty)
|
||||
r600_update_alpha_ref(rctx);
|
||||
|
||||
mask = 0;
|
||||
for (int i = 0; i < rctx->framebuffer.nr_cbufs; i++) {
|
||||
mask |= (0xF << (i * 4));
|
||||
}
|
||||
mask = (1ULL << ((unsigned)rctx->framebuffer.nr_cbufs * 4)) - 1;
|
||||
|
||||
if (rctx->vgt.id != R600_PIPE_STATE_VGT) {
|
||||
rctx->vgt.id = R600_PIPE_STATE_VGT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue