diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2015-10-02 02:09:58 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-10-06 04:40:22 -0400 |
commit | 7b9748cb513a6bef4af87b79f0da3ff7e8b56cd8 (patch) | |
tree | 410cdadc6d1f22a4c03d79eeeb162f3f1425a09b /drivers | |
parent | 3e7732a05d3b14e2ae33013622ae9c691b419312 (diff) |
drm/i915: Add GEN7_GPGPU_DISPATCHDIMX/Y/Z to the register whitelist
This is required to support glDispatchComputeIndirect for gen7.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_cmd_parser.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_cmd_parser.c b/drivers/gpu/drm/i915/i915_cmd_parser.c index 09932cab1a3f..db58c8d664c2 100644 --- a/drivers/gpu/drm/i915/i915_cmd_parser.c +++ b/drivers/gpu/drm/i915/i915_cmd_parser.c | |||
@@ -448,6 +448,9 @@ static const struct drm_i915_reg_descriptor gen7_render_regs[] = { | |||
448 | REG32(GEN7_3DPRIM_INSTANCE_COUNT), | 448 | REG32(GEN7_3DPRIM_INSTANCE_COUNT), |
449 | REG32(GEN7_3DPRIM_START_INSTANCE), | 449 | REG32(GEN7_3DPRIM_START_INSTANCE), |
450 | REG32(GEN7_3DPRIM_BASE_VERTEX), | 450 | REG32(GEN7_3DPRIM_BASE_VERTEX), |
451 | REG32(GEN7_GPGPU_DISPATCHDIMX), | ||
452 | REG32(GEN7_GPGPU_DISPATCHDIMY), | ||
453 | REG32(GEN7_GPGPU_DISPATCHDIMZ), | ||
451 | REG64(GEN7_SO_NUM_PRIMS_WRITTEN(0)), | 454 | REG64(GEN7_SO_NUM_PRIMS_WRITTEN(0)), |
452 | REG64(GEN7_SO_NUM_PRIMS_WRITTEN(1)), | 455 | REG64(GEN7_SO_NUM_PRIMS_WRITTEN(1)), |
453 | REG64(GEN7_SO_NUM_PRIMS_WRITTEN(2)), | 456 | REG64(GEN7_SO_NUM_PRIMS_WRITTEN(2)), |
@@ -1214,6 +1217,7 @@ int i915_cmd_parser_get_version(void) | |||
1214 | * MI_PREDICATE_SRC1 registers. | 1217 | * MI_PREDICATE_SRC1 registers. |
1215 | * 3. Allow access to the GPGPU_THREADS_DISPATCHED register. | 1218 | * 3. Allow access to the GPGPU_THREADS_DISPATCHED register. |
1216 | * 4. L3 atomic chicken bits of HSW_SCRATCH1 and HSW_ROW_CHICKEN3. | 1219 | * 4. L3 atomic chicken bits of HSW_SCRATCH1 and HSW_ROW_CHICKEN3. |
1220 | * 5. GPGPU dispatch compute indirect registers. | ||
1217 | */ | 1221 | */ |
1218 | return 4; | 1222 | return 5; |
1219 | } | 1223 | } |
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 8d7be66d96bc..07588b63d434 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -536,6 +536,10 @@ | |||
536 | #define GEN7_3DPRIM_START_INSTANCE 0x243C | 536 | #define GEN7_3DPRIM_START_INSTANCE 0x243C |
537 | #define GEN7_3DPRIM_BASE_VERTEX 0x2440 | 537 | #define GEN7_3DPRIM_BASE_VERTEX 0x2440 |
538 | 538 | ||
539 | #define GEN7_GPGPU_DISPATCHDIMX 0x2500 | ||
540 | #define GEN7_GPGPU_DISPATCHDIMY 0x2504 | ||
541 | #define GEN7_GPGPU_DISPATCHDIMZ 0x2508 | ||
542 | |||
539 | #define OACONTROL 0x2360 | 543 | #define OACONTROL 0x2360 |
540 | 544 | ||
541 | #define _GEN7_PIPEA_DE_LOAD_SL 0x70068 | 545 | #define _GEN7_PIPEA_DE_LOAD_SL 0x70068 |