diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-07-22 20:03:29 -0700 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-07-22 20:26:35 -0700 |
commit | 37dabfeef76134b4e3d987723e70e869036d1083 (patch) | |
tree | 3854726e0ed953b72f05551de3a7e1a15fc0e656 | |
parent | 5de2678b4e552c032cf2da6ec1549020fd9c7afd (diff) | |
download | external_mesa3d-37dabfeef76134b4e3d987723e70e869036d1083.zip external_mesa3d-37dabfeef76134b4e3d987723e70e869036d1083.tar.gz external_mesa3d-37dabfeef76134b4e3d987723e70e869036d1083.tar.bz2 |
i915g: Set total_nblocksy in from_handle
-rw-r--r-- | src/gallium/drivers/i915/i915_resource_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c index 8252881..752ddaa 100644 --- a/src/gallium/drivers/i915/i915_resource_texture.c +++ b/src/gallium/drivers/i915/i915_resource_texture.c @@ -845,6 +845,7 @@ i915_texture_from_handle(struct pipe_screen * screen, tex->b.b.screen = screen; tex->stride = stride; + tex->total_nblocksy = align_nblocksy(tex->b.b.format, tex->b.b.height0, 8); i915_texture_set_level_info(tex, 0, 1); i915_texture_set_image_offset(tex, 0, 0, 0, 0); |