diff options
author | Imre Deak <imre.deak@intel.com> | 2017-12-08 16:43:05 +0200 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2017-12-11 13:49:02 +0200 |
commit | 4d40a6776f08dd87b7e007da691b73d45a9bf1fa (patch) | |
tree | c19ac1384ab72393fa53fadbd3ea88bfed5a6782 /lib/intel_reg.h | |
parent | 0f3be861eb7456a87706b72216daa3ee7e4dde5b (diff) |
igt_fb: Add support for drawing to non-32bit Y/Yf tiled FBs
When drawing with cairo to Y/Yf tiled FBs we use a temporary linear
buffer which is mapped to the CPU, but the fast blit needed for this
only expects 32 bpp FBs. Add support for other bpps too.
This is needed for upcoming patches testing non-32bit bpp formats with
Y/Yf tiling.
Thanks to Ville for explaining why we need the temporary buffer. (Looks
like for Y tiling we could do without, but that's a separate topic.)
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'lib/intel_reg.h')
-rw-r--r-- | lib/intel_reg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/intel_reg.h b/lib/intel_reg.h index 3a28c08c..f85fb742 100644 --- a/lib/intel_reg.h +++ b/lib/intel_reg.h @@ -2530,7 +2530,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /* dword 1 */ #define XY_FAST_COPY_SRC_TILING_Yf (1 << 31) #define XY_FAST_COPY_DST_TILING_Yf (1 << 30) +#define XY_FAST_COPY_COLOR_DEPTH_8 (0 << 24) +#define XY_FAST_COPY_COLOR_DEPTH_16 (1 << 24) #define XY_FAST_COPY_COLOR_DEPTH_32 (3 << 24) +#define XY_FAST_COPY_COLOR_DEPTH_64 (4 << 24) +#define XY_FAST_COPY_COLOR_DEPTH_128 (5 << 24) #define MI_STORE_DWORD_IMM ((0x20<<23)|2) #define MI_MEM_VIRTUAL (1 << 22) /* 965+ only */ |