[Mesa-dev] [PATCH 79/84] st/nine: Idem for nine_context_gen_mipmap
Axel Davy
axel.davy at ens.fr
Wed Dec 7 22:55:52 UTC 2016
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 at ens.fr>
---
src/gallium/state_trackers/nine/basetexture9.c | 3 ++-
src/gallium/state_trackers/nine/nine_state.c | 4 ++++
src/gallium/state_trackers/nine/nine_state.h | 1 +
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c
index 5b9b001..0a9034c 100644
--- a/src/gallium/state_trackers/nine/basetexture9.c
+++ b/src/gallium/state_trackers/nine/basetexture9.c
@@ -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);
diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 1333d25..f0eb23d 100644
--- a/src/gallium/state_trackers/nine/nine_state.c
+++ b/src/gallium/state_trackers/nine/nine_state.c
@@ -2698,6 +2698,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),
@@ -2707,6 +2708,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);
}
diff --git a/src/gallium/state_trackers/nine/nine_state.h b/src/gallium/state_trackers/nine/nine_state.h
index acead92..68dca40 100644
--- a/src/gallium/state_trackers/nine/nine_state.h
+++ b/src/gallium/state_trackers/nine/nine_state.h
@@ -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,
--
2.10.2
More information about the mesa-dev
mailing list