OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7448342
)
gallium/noop: fix sampler views
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 8 Jun 2017 00:26:28 +0000
(
02:26
+0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 12 Jun 2017 16:24:37 +0000
(18:24 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/noop/noop_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/noop/noop_state.c
b/src/gallium/drivers/noop/noop_state.c
index
46d99ab
..
80cfae8
100644
(file)
--- a/
src/gallium/drivers/noop/noop_state.c
+++ b/
src/gallium/drivers/noop/noop_state.c
@@
-76,7
+76,10
@@
static struct pipe_sampler_view *noop_create_sampler_view(struct pipe_context *c
if (!sampler_view)
return NULL;
+
/* initialize base object */
+ *sampler_view = *state;
+ sampler_view->texture = NULL;
pipe_resource_reference(&sampler_view->texture, texture);
pipe_reference_init(&sampler_view->reference, 1);
sampler_view->context = ctx;