diff options
author | Axel Davy <[email protected]> | 2016-12-03 23:04:07 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:47:08 +0100 |
commit | cadc7a5d9459b7a47d934cf0055a1a06d1f774d4 (patch) | |
tree | d48e4991552e58aa9c5fd21366dc3ccec30d17c3 | |
parent | 8d3e0f2187d146e7b34abe1f852320ea5e14732e (diff) |
st/nine: Use nine_context_gen_mipmap in BaseTexture9
Generate mipmaps in the worker thread.
Signed-off-by: Axel Davy <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/nine/basetexture9.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c index ce08c25c114..5b9b0019a2e 100644 --- a/src/gallium/state_trackers/nine/basetexture9.c +++ b/src/gallium/state_trackers/nine/basetexture9.c @@ -34,7 +34,6 @@ #endif #include "util/u_format.h" -#include "util/u_gen_mipmap.h" #define DBG_CHANNEL DBG_BASETEXTURE @@ -384,8 +383,6 @@ NineBaseTexture9_UploadSelf( struct NineBaseTexture9 *This ) void NINE_WINAPI NineBaseTexture9_GenerateMipSubLevels( struct NineBaseTexture9 *This ) { - struct pipe_context *pipe; - struct pipe_resource *resource; unsigned base_level = 0; unsigned last_level = This->base.info.last_level - This->managed.lod; unsigned first_layer = 0; @@ -408,12 +405,9 @@ NineBaseTexture9_GenerateMipSubLevels( struct NineBaseTexture9 *This ) last_layer = util_max_layer(This->view[0]->texture, base_level); - resource = This->base.resource; - - pipe = NineDevice9_GetPipe(This->base.base.device); - util_gen_mipmap(pipe, resource, - resource->format, base_level, last_level, - first_layer, last_layer, filter); + nine_context_gen_mipmap(This->base.base.device, This->base.resource, + base_level, last_level, + first_layer, last_layer, filter); This->dirty_mip = FALSE; } |