iris: make binding table shifting values available outside iris_state.c

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26797>
This commit is contained in:
Lionel Landwerlin
2023-12-20 16:50:21 +02:00
committed by Marge Bot
parent f192ea630a
commit bde1c76655
2 changed files with 6 additions and 3 deletions

View File

@@ -80,6 +80,12 @@ __gen_get_batch_address(struct iris_batch *batch, void *location)
#include "genxml/gen_macros.h"
#include "genxml/genX_bits.h"
#if GFX_VER >= 11 && GFX_VERx10 < 125
#define IRIS_BT_OFFSET_SHIFT 3
#else
#define IRIS_BT_OFFSET_SHIFT 0
#endif
/* CS_GPR(15) is reserved for combining conditional rendering predicates
* with GL_ARB_indirect_parameters draw number predicates.
*/

View File

@@ -1143,9 +1143,6 @@ iris_init_common_context(struct iris_batch *batch)
reg.BindingTableAlignment = BTP_18_8;
reg.BindingTableAlignmentMask = true;
}
#define IRIS_BT_OFFSET_SHIFT 3
#else
#define IRIS_BT_OFFSET_SHIFT 0
#endif
#if GFX_VERx10 == 125