Mesa (master): aubinator: Dump sampler state pointers on gen6 too.

Rafael Antognolli rantogno at kemper.freedesktop.org
Fri Jun 23 00:40:39 UTC 2017


Module: Mesa
Branch: master
Commit: f43c21cbbd75651162865d115fc3ecd1faa8469e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f43c21cbbd75651162865d115fc3ecd1faa8469e

Author: Rafael Antognolli <rafael.antognolli at intel.com>
Date:   Tue May 30 15:08:13 2017 -0700

aubinator: Dump sampler state pointers on gen6 too.

We already have a function to dump sampler states, so do that for gen6
too.

Signed-off-by: Rafael Antognolli <rafael.antognolli at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/tools/aubinator.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 4d74fe964d..6c9a8f052c 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -524,6 +524,14 @@ handle_3dstate_sampler_state_pointers(struct gen_spec *spec, uint32_t *p)
 }
 
 static void
+handle_3dstate_sampler_state_pointers_gen6(struct gen_spec *spec, uint32_t *p)
+{
+   dump_samplers(spec, p[1]);
+   dump_samplers(spec, p[2]);
+   dump_samplers(spec, p[3]);
+}
+
+static void
 handle_3dstate_viewport_state_pointers_cc(struct gen_spec *spec, uint32_t *p)
 {
    uint64_t start;
@@ -634,6 +642,8 @@ handle_load_register_imm(struct gen_spec *spec, uint32_t *p)
 #define _3DSTATE_SAMPLER_STATE_POINTERS_GS  0x782e0000
 #define _3DSTATE_SAMPLER_STATE_POINTERS_PS  0x782f0000
 
+#define _3DSTATE_SAMPLER_STATE_POINTERS     0x78020000
+
 #define _3DSTATE_VIEWPORT_STATE_POINTERS_CC 0x78230000
 #define _3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP 0x78210000
 #define _3DSTATE_BLEND_STATE_POINTERS       0x78240000
@@ -670,6 +680,7 @@ struct custom_handler {
    { _3DSTATE_SAMPLER_STATE_POINTERS_VS, handle_3dstate_sampler_state_pointers },
    { _3DSTATE_SAMPLER_STATE_POINTERS_GS, handle_3dstate_sampler_state_pointers },
    { _3DSTATE_SAMPLER_STATE_POINTERS_PS, handle_3dstate_sampler_state_pointers },
+   { _3DSTATE_SAMPLER_STATE_POINTERS, handle_3dstate_sampler_state_pointers_gen6 },
 
    { _3DSTATE_VIEWPORT_STATE_POINTERS_CC, handle_3dstate_viewport_state_pointers_cc },
    { _3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP, handle_3dstate_viewport_state_pointers_sf_clip },




More information about the mesa-commit mailing list