mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
r300g: Fix macro
This fixes a potential bug if (has_hyperz) is false (it would still init the atom as if has_hyperz were true). Signed-off-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
27eb2e2755
commit
b0e1565b5f
1 changed files with 3 additions and 1 deletions
|
|
@ -158,12 +158,14 @@ void r300_flush_cb(void *data)
|
|||
}
|
||||
|
||||
#define R300_INIT_ATOM(atomname, atomsize) \
|
||||
do { \
|
||||
r300->atomname.name = #atomname; \
|
||||
r300->atomname.state = NULL; \
|
||||
r300->atomname.size = atomsize; \
|
||||
r300->atomname.emit = r300_emit_##atomname; \
|
||||
r300->atomname.dirty = FALSE; \
|
||||
insert_at_tail(&r300->atom_list, &r300->atomname);
|
||||
insert_at_tail(&r300->atom_list, &r300->atomname); \
|
||||
} while (0)
|
||||
|
||||
static void r300_setup_atoms(struct r300_context* r300)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue