<div dir="ltr">Reviewed-by: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 25, 2013 at 7:43 PM, <span dir="ltr"><<a href="mailto:sroland@vmware.com" target="_blank">sroland@vmware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Roland Scheidegger <<a href="mailto:sroland@vmware.com">sroland@vmware.com</a>><br>
<br>
This adds support for this to more drivers, in particular for all the "special"<br>
ones useful for debugging.<br>
HW drivers are left alone, some should be able to support it if they want but<br>
they may not be interested at this point.<br>
---<br>
src/gallium/drivers/galahad/glhd_context.c | 2 +-<br>
src/gallium/drivers/identity/id_context.c | 2 +-<br>
src/gallium/drivers/rbug/rbug_context.c | 2 +-<br>
src/gallium/drivers/rbug/rbug_context.h | 4 ++--<br>
src/gallium/drivers/rbug/rbug_core.c | 2 +-<br>
src/gallium/drivers/trace/tr_context.c | 2 +-<br>
6 files changed, 7 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c<br>
index 0bb7abd..fa743bd 100644<br>
--- a/src/gallium/drivers/galahad/glhd_context.c<br>
+++ b/src/gallium/drivers/galahad/glhd_context.c<br>
@@ -518,7 +518,7 @@ galahad_context_set_sampler_views(struct pipe_context *_pipe,<br>
{<br>
struct galahad_context *glhd_pipe = galahad_context(_pipe);<br>
struct pipe_context *pipe = glhd_pipe->pipe;<br>
- struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SAMPLERS];<br>
+ struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
unsigned i;<br>
<br>
for (i = 0; i < num; i++)<br>
diff --git a/src/gallium/drivers/identity/id_context.c b/src/gallium/drivers/identity/id_context.c<br>
index 60e8860..00414b8 100644<br>
--- a/src/gallium/drivers/identity/id_context.c<br>
+++ b/src/gallium/drivers/identity/id_context.c<br>
@@ -485,7 +485,7 @@ identity_set_sampler_views(struct pipe_context *_pipe,<br>
{<br>
struct identity_context *id_pipe = identity_context(_pipe);<br>
struct pipe_context *pipe = id_pipe->pipe;<br>
- struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SAMPLERS];<br>
+ struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
unsigned i;<br>
<br>
for (i = 0; i < num; i++)<br>
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c<br>
index be3e964..0e7badb 100644<br>
--- a/src/gallium/drivers/rbug/rbug_context.c<br>
+++ b/src/gallium/drivers/rbug/rbug_context.c<br>
@@ -712,7 +712,7 @@ rbug_set_sampler_views(struct pipe_context *_pipe,<br>
{<br>
struct rbug_context *rb_pipe = rbug_context(_pipe);<br>
struct pipe_context *pipe = rb_pipe->pipe;<br>
- struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SAMPLERS];<br>
+ struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
struct pipe_sampler_view **views = NULL;<br>
unsigned i;<br>
<br>
diff --git a/src/gallium/drivers/rbug/rbug_context.h b/src/gallium/drivers/rbug/rbug_context.h<br>
index 6b44da0..5e7b9d4 100644<br>
--- a/src/gallium/drivers/rbug/rbug_context.h<br>
+++ b/src/gallium/drivers/rbug/rbug_context.h<br>
@@ -48,8 +48,8 @@ struct rbug_context {<br>
struct {<br>
struct rbug_shader *shader[PIPE_SHADER_TYPES];<br>
<br>
- struct rbug_sampler_view *views[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS];<br>
- struct rbug_resource *texs[PIPE_SHADER_TYPES][PIPE_MAX_SAMPLERS];<br>
+ struct rbug_sampler_view *views[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
+ struct rbug_resource *texs[PIPE_SHADER_TYPES][PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
unsigned num_views[PIPE_SHADER_TYPES];<br>
<br>
unsigned nr_cbufs;<br>
diff --git a/src/gallium/drivers/rbug/rbug_core.c b/src/gallium/drivers/rbug/rbug_core.c<br>
index b957261..8f9388a 100644<br>
--- a/src/gallium/drivers/rbug/rbug_core.c<br>
+++ b/src/gallium/drivers/rbug/rbug_core.c<br>
@@ -320,7 +320,7 @@ rbug_context_info(struct rbug_rbug *tr_rbug, struct rbug_header *header, uint32_<br>
struct rbug_screen *rb_screen = tr_rbug->rb_screen;<br>
struct rbug_context *rb_context = NULL;<br>
rbug_texture_t cbufs[PIPE_MAX_COLOR_BUFS];<br>
- rbug_texture_t texs[PIPE_MAX_SAMPLERS];<br>
+ rbug_texture_t texs[PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
unsigned i;<br>
<br>
pipe_mutex_lock(rb_screen->list_mutex);<br>
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c<br>
index 78911aa..6a98657 100644<br>
--- a/src/gallium/drivers/trace/tr_context.c<br>
+++ b/src/gallium/drivers/trace/tr_context.c<br>
@@ -891,7 +891,7 @@ trace_context_set_sampler_views(struct pipe_context *_pipe,<br>
struct trace_context *tr_ctx = trace_context(_pipe);<br>
struct trace_sampler_view *tr_view;<br>
struct pipe_context *pipe = tr_ctx->pipe;<br>
- struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SAMPLERS];<br>
+ struct pipe_sampler_view *unwrapped_views[PIPE_MAX_SHADER_SAMPLER_VIEWS];<br>
unsigned i;<br>
<br>
/* remove this when we have pipe->set_sampler_views(..., start, ...) */<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.5<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>