anv: don't reserve a particular register for draw count
By using the same mi_builder throughout the draw call, we can just allocate a register from the mi_builder and unref it when we're done. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2775>
This commit is contained in:
@@ -32,8 +32,8 @@
|
||||
#include "genxml/gen_macros.h"
|
||||
#include "genxml/genX_pack.h"
|
||||
|
||||
/* We reserve GPR 14 and 15 for conditional rendering */
|
||||
#define GEN_MI_BUILDER_NUM_ALLOC_GPRS 14
|
||||
/* We reserve GPR 15 for conditional rendering */
|
||||
#define GEN_MI_BUILDER_NUM_ALLOC_GPRS 15
|
||||
#define __gen_get_batch_dwords anv_batch_emit_dwords
|
||||
#define __gen_address_offset anv_address_add
|
||||
#include "common/gen_mi_builder.h"
|
||||
|
Reference in New Issue
Block a user