[Mesa-dev] [PATCH v3 05/12] nvc0: reduce likelihood of collision for real buffers on Kepler

Ilia Mirkin imirkin at alum.mit.edu
Fri Apr 1 17:14:32 UTC 2016


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

On Fri, Apr 1, 2016 at 12:56 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Reduce likelihood of collision with real buffers by placing the
> hole at the top of the 4G area. This fixes some indirect draw+compute
> tests with large buffers.
>
> Suggested by Ilia Mirkin.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/nvc0/nve4_compute.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nve4_compute.c b/src/gallium/drivers/nouveau/nvc0/nve4_compute.c
> index b1450f8..04ede3e 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nve4_compute.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nve4_compute.c
> @@ -96,9 +96,9 @@ nve4_screen_compute_setup(struct nvc0_screen *screen,
>      *  accessible. We cannot prevent that at the moment, so expect failure.
>      */
>     BEGIN_NVC0(push, NVE4_CP(LOCAL_BASE), 1);
> -   PUSH_DATA (push, 1 << 24);
> +   PUSH_DATA (push, 0xff << 24);
>     BEGIN_NVC0(push, NVE4_CP(SHARED_BASE), 1);
> -   PUSH_DATA (push, 2 << 24);
> +   PUSH_DATA (push, 0xfe << 24);
>
>     BEGIN_NVC0(push, NVE4_CP(CODE_ADDRESS_HIGH), 2);
>     PUSH_DATAh(push, screen->text->offset);
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list