xref: /linux/drivers/gpu/drm/xe/instructions/xe_gfx_state_commands.h (revision db5d28c0bfe566908719bec8e25443aabecbb802)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GFX_STATE_COMMANDS_H_
7 #define _XE_GFX_STATE_COMMANDS_H_
8 
9 #include "instructions/xe_instr_defs.h"
10 
11 #define GFX_STATE_OPCODE			REG_GENMASK(28, 26)
12 
13 #define GFX_STATE_CMD(opcode) \
14 	(XE_INSTR_GFX_STATE | REG_FIELD_PREP(GFX_STATE_OPCODE, opcode))
15 
16 #define STATE_WRITE_INLINE			GFX_STATE_CMD(0x0)
17 
18 #endif
19