st/nine: Idem for nine_context_gen_mipmap
authorAxel Davy <axel.davy@ens.fr>
Sun, 4 Dec 2016 00:13:25 +0000 (01:13 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:47:08 +0000 (23:47 +0100)
Will enable to use the bind count as an information for
whether the surface/volume is used in the worker thread.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/basetexture9.c
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h

index 5b9b0019a2e105f59a9b4f64731a7a5cff160fa3..0a9034c949d6dd4df49d604575eb73bee3178ea3 100644 (file)
@@ -405,7 +405,8 @@ NineBaseTexture9_GenerateMipSubLevels( struct NineBaseTexture9 *This )
 
     last_layer = util_max_layer(This->view[0]->texture, base_level);
 
-    nine_context_gen_mipmap(This->base.base.device, This->base.resource,
+    nine_context_gen_mipmap(This->base.base.device, (struct NineUnknown *)This,
+                            This->base.resource,
                             base_level, last_level,
                             first_layer, last_layer, filter);
 
index 7c2605f864c9a54a73523081e1f900e48443e36d..88fa01f3483d0e95ba19690300510ff1fc16444e 100644 (file)
@@ -2694,6 +2694,7 @@ CSMT_ITEM_NO_WAIT(nine_context_clear_render_target,
 }
 
 CSMT_ITEM_NO_WAIT(nine_context_gen_mipmap,
+                  ARG_BIND_REF(struct NineUnknown, dst),
                   ARG_BIND_RES(struct pipe_resource, res),
                   ARG_VAL(UINT, base_level),
                   ARG_VAL(UINT, last_level),
@@ -2703,6 +2704,9 @@ CSMT_ITEM_NO_WAIT(nine_context_gen_mipmap,
 {
     struct nine_context *context = &device->context;
 
+    /* We just bind dst for the bind count */
+    (void)dst;
+
     util_gen_mipmap(context->pipe, res, res->format, base_level,
                     last_level, first_layer, last_layer, filter);
 }
index acead926414b182aefb3b51591abbf72bdb37175..68dca40241bf2cf009954d704a9862aec0703769 100644 (file)
@@ -541,6 +541,7 @@ nine_context_clear_render_target(struct NineDevice9 *device,
 
 void
 nine_context_gen_mipmap(struct NineDevice9 *device,
+                        struct NineUnknown *dst,
                         struct pipe_resource *res,
                         UINT base_level, UINT last_level,
                         UINT first_layer, UINT last_layer,