diff options
author | Jason Ekstrand <[email protected]> | 2017-08-02 11:50:12 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-08-07 09:31:11 -0700 |
commit | 24a0da338f47ac2e8fd2a7845b87045439250e75 (patch) | |
tree | 2ba18ad07269e8ef0e7febef46f19854b76d54e7 /src/mesa/drivers/dri/i965/intel_tex.c | |
parent | 55116839d9bbf50d5128938d8dc11f44828b82a2 (diff) |
i965/miptree: Rework create flags
The only one of the three remaining flags that has anything whatsoever
to do with layout is TILING_NONE. This commit renames them to
MIPTREE_CREATE_*, documents the meaning of each flag, and makes the
create functions take an actual enum type so GDB will print them nicely.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_tex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex.c b/src/mesa/drivers/dri/i965/intel_tex.c index 686b31c53e9..890c82dd329 100644 --- a/src/mesa/drivers/dri/i965/intel_tex.c +++ b/src/mesa/drivers/dri/i965/intel_tex.c @@ -150,7 +150,7 @@ intel_alloc_texture_storage(struct gl_context *ctx, 0, levels - 1, width, height, depth, MAX2(num_samples, 1), - 0); + MIPTREE_CREATE_DEFAULT); if (intel_texobj->mt == NULL) { return false; @@ -345,7 +345,7 @@ intel_set_texture_storage_for_buffer_object(struct gl_context *ctx, buffer_offset, image->Width, image->Height, image->Depth, row_stride, - 0); + MIPTREE_CREATE_DEFAULT); if (!intel_texobj->mt) return false; |