There doesn't seem any reason to start from 4.
Start from 1 instead (0 is left reserved to catch uninitialized atoms).
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
void evergreen_init_state_functions(struct r600_context *rctx)
{
- unsigned id = 4;
+ unsigned id = 1;
/* !!!
* To avoid GPU lockup registers must be emited in a specific order
#include "tgsi/tgsi_scan.h"
-#define R600_NUM_ATOMS 45
+#define R600_NUM_ATOMS 42
#define R600_MAX_VIEWPORTS 16
void r600_init_state_functions(struct r600_context *rctx)
{
- unsigned id = 4;
+ unsigned id = 1;
/* !!!
* To avoid GPU lockup registers must be emited in a specific order