]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: CXT_SIZE register offsets added
authorBen Widawsky <bwidawsk@gmail.com>
Mon, 4 Jun 2012 21:42:41 +0000 (14:42 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Jun 2012 15:36:16 +0000 (17:36 +0200)
commit9ace03e96e8cd8171dc3c018886774699c8bd64d
tree29a6f05aa084b85b6a9816498b040d8b6296cf0a
parent2490d27a585cf7f25dabb7c95d49868a2579cbc8
drm/i915: CXT_SIZE register offsets added

The GPUs can have different default context layouts, and the sizes could
vary based on platform or BIOS. In order to back the context object with
a properly sized BO, we must read this register in order to find out a
sufficient size.

Thankfully (sarcarm!), the register moves and changes meanings
throughout generations.

CTX and CXT differences are intentional as that is how it is in the
documentation (prior to GEN6 it was CXT).

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
drivers/gpu/drm/i915/i915_reg.h