[Mesa-stable] [Mesa-dev] [PATCH] nvc0: make sure to delete samplers used by compute shaders

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Mar 21 19:15:12 UTC 2016



On 03/21/2016 03:24 PM, Ilia Mirkin wrote:
> Hmmm.. Does 11.1 really need this? With that version dropped, this patch is

Well, compute support for Kepler is in mesa 11.1.

>
> Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu
> <mailto:imirkin at alum.mit.edu>>
>
> On Mar 21, 2016 8:16 AM, "Samuel Pitoiset" <samuel.pitoiset at gmail.com
> <mailto:samuel.pitoiset at gmail.com>> wrote:
>
>     Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com
>     <mailto:samuel.pitoiset at gmail.com>>
>     Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org
>     <mailto:mesa-stable at lists.freedesktop.org>>
>     ---
>       src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 2 +-
>       1 file changed, 1 insertion(+), 1 deletion(-)
>
>     diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>     b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>     index 090a039..a100fc4 100644
>     --- a/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>     +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state.c
>     @@ -413,7 +413,7 @@ nvc0_sampler_state_delete(struct pipe_context
>     *pipe, void *hwcso)
>       {
>          unsigned s, i;
>
>     -   for (s = 0; s < 5; ++s)
>     +   for (s = 0; s < 6; ++s)
>             for (i = 0; i < nvc0_context(pipe)->num_samplers[s]; ++i)
>                if (nvc0_context(pipe)->samplers[s][i] == hwcso)
>                   nvc0_context(pipe)->samplers[s][i] = NULL;
>     --
>     2.7.1
>
>     _______________________________________________
>     mesa-dev mailing list
>     mesa-dev at lists.freedesktop.org <mailto:mesa-dev at lists.freedesktop.org>
>     https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>


More information about the mesa-stable mailing list