Thread (54 messages) 54 messages, 5 authors, 2021-06-10

Re: [igt-dev] [PATCH i-g-t 07/17] Add MI_SET_APPID instruction definition

From: Teres Alexis, Alan Previn <hidden>
Date: 2021-06-03 15:22:43

On Thu, 2021-06-03 at 10:52 +0200, Michal Wajdeczko wrote:
On 18.05.2021 12:33, Alan Previn wrote:
quoted
Add MI_SET_APPID instruction and param definitions

Signed-off-by: Alan Previn <redacted>
---
 lib/intel_reg.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/lib/intel_reg.h b/lib/intel_reg.h
index ac1fc6cb..46b5da20 100644
--- a/lib/intel_reg.h
+++ b/lib/intel_reg.h
@@ -2546,6 +2546,15 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
 #define CTXT_PALETTE_SAVE_DISABLE	(1<<3)
 #define CTXT_PALETTE_RESTORE_DISABLE	(1<<2)
 
+#define MI_SET_APPID                    (0x0E << 23)
+#define APPID_CTXSAVE_INHIBIT           (1 << 8)
+#define APPID_CTXREST_INHIBIT           (1 << 9)
+#define DISPLAY_APPTYPE                 (0)
+#define TRANSCODE_APPTYPE               (1)
+#define APPTYPE(n)                      (n << 7)
+#define APPID(n)                        (n & 0x7f)
macro params shall be wrapped by ()
okay - i can see how it can be an issue without that additional () -
will fix it.
#define APPTYPE(n)                      ((n) << 7)
#define APPID(n)                        ((n) & 0x7f)
quoted
+
+
 /* Dword 0 */
 #define MI_VERTEX_BUFFER		(0x17<<23)
 #define MI_VERTEX_BUFFER_IDX(x)		(x<<20)
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help