path: root/src/gbm
diff options
authorTopi Pohjolainen <>2017-06-05 13:00:49 +0300
committerTopi Pohjolainen <>2017-07-18 21:36:13 +0300
commit28ccf8587e1e1c0e9a7b08296807c343f33dc9de (patch)
tree18a7f01e4243bd7862dd1efea4f15bb10d3c0caa /src/gbm
parent75075632913171ce515b3c0c5debd4ddac4ddd84 (diff)
i965/gen4: Set tile offsets to zero after depth rebase
Current logic calls intel_renderbuffer_set_draw_offset() which in turn tries to calculate x and y offset against layer/level settings that are against the original miptree actually having sufficient levels/layers. This returns correctly x=0 y=0 regardless of the given layer/level only because one calls intel_miptree_get_image_offset() which goes and consults miptree offset table which in turn luckily contains entries for max-mipmap levels, all initialised to zero even in case of non-mipmapped. This patch stops consulting the table and simply sets the draw offsets to zero that are compatible with the single slice miptree backing the renderbuffer. This prepares for ISL based miptrees that calculate offsets on-demand and do not tolerate levels beyond what the miptree has. Reviewed-by: Jason Ekstrand <> Signed-off-by: Topi Pohjolainen <>
Diffstat (limited to 'src/gbm')
0 files changed, 0 insertions, 0 deletions