This patch looks good to me. The wording in the bspec seems a little vague so I was wondering if maybe the real restriction is that the offset must be 4-byte aligned rather than being aligned to the bpp. However I tried it with a 16-bit type and sure enough it works to have an offset aligned to two bytes.
Reviewed-by: Neil Roberts <n...@linux.intel.com> - Neil Cody Northrop <c...@lunarg.com> writes: > The blitter will start at a pixel's natural alignment. For PBOs, if the > provided offset if not aligned, bits will get dropped. > > This change adds offset alignment check for src and dst, kicking back if > the requirements are not met. > > The change is based on following verbiage from BSPEC: > Color pixel sizes supported are 8, 16, and 32 bits per pixel (bpp). > All pixels are naturally aligned. > > Found in the following locations: > page 35 of intel-gfx-prm-osrc-hsw-blitter.pdf > page 29 of ivb_ihd_os_vol1_part4.pdf > page 29 of snb_ihd_os_vol1_part5.pdf > > This behavior was observed with Steam Big Picture rendering incorrect > icon colors. The fix has been tested on Ubuntu and SteamOS on Haswell. > > Signed-off-by: Cody Northrop <c...@lunarg.com> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83908 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev