diff options
author | Jason Ekstrand <[email protected]> | 2017-06-12 10:38:48 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-12 21:15:46 -0700 |
commit | 091965760da6d2624b6cebd2e67c17fb905dae7e (patch) | |
tree | adf98e3b4feebb507935bd88fb96c6f2c40a656e /src | |
parent | 4bf140576a68733dba7de7a146d65dfff90b3990 (diff) |
i965/miptree: Set level_x/h in create_for_dri_image
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 077e2ab8e41..0d989d5b063 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -1077,6 +1077,8 @@ intel_miptree_create_for_dri_image(struct brw_context *brw, return NULL; mt->target = target; + mt->level[0].level_x = image->tile_x; + mt->level[0].level_y = image->tile_y; mt->level[0].slice[0].x_offset = image->tile_x; mt->level[0].slice[0].y_offset = image->tile_y; mt->total_width += image->tile_x; |