[Mesa-dev] [PATCH] nv50: force cache flush for Uniform Buffer Objects

Ilia Mirkin imirkin at alum.mit.edu
Tue Jul 21 12:39:26 PDT 2015


How about

"nv50: force cache flush when binding a new ubo"

Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, Jul 21, 2015 at 3:37 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> This fixes the following piglit test:
>   ext_transform_feedback-immediate-reuse-uniform-buffer
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/nv50/nv50_shader_state.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c b/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
> index 1ec5642..9369093 100644
> --- a/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
> +++ b/src/gallium/drivers/nouveau/nv50/nv50_shader_state.c
> @@ -99,6 +99,8 @@ nv50_constbufs_validate(struct nv50_context *nv50)
>                 PUSH_DATA (push, (b << 12) | (i << 8) | p | 1);
>
>                 BCTX_REFN(nv50->bufctx_3d, CB(s, i), res, RD);
> +
> +               nv50->cb_dirty = 1; /* Force cache flush for UBO. */
>              } else {
>                 BEGIN_NV04(push, NV50_3D(SET_PROGRAM_CB), 1);
>                 PUSH_DATA (push, (i << 8) | p | 0);
> --
> 2.4.6
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list