intel-gem: Fix Y-tiling span setup.
authorEric Anholt <eric@anholt.net>
Wed, 2 Jul 2008 16:10:21 +0000 (09:10 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 2 Jul 2008 16:10:21 +0000 (09:10 -0700)
commit19f585a3cf65887e249d630fe43e83e7e7618dfa
treefcd55e2f48d45d0dac1e708adf5f0ba32763ea40
parente74f54793e45dd2e36474f6fc527456647f32efd
intel-gem: Fix Y-tiling span setup.

The boolean that the server gives us for whether the region is tiled was
getting used as the enum for what tiling mode.  Instead, guess the correct
tiling in screen setup.

Also, fix the Y-tiling pitch setup.  The pitch to the next tile in Y is
32 scanlines, not 8.
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_screen.h
src/mesa/drivers/dri/intel/intel_span.c
src/mesa/drivers/dri/intel/intel_span.h