All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: zbigniew.kempczynski@intel.com, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t v5 3/8] lib/intel_batchbuffer: Introduce intel_bb
Date: Tue, 19 May 2020 19:50:04 +0100	[thread overview]
Message-ID: <158991420499.8153.14200646045791402596@build.alporthouse.com> (raw)
In-Reply-To: <20200519181614.20880-4-zbigniew.kempczynski@intel.com>

Quoting Zbigniew Kempczyński (2020-05-19 19:16:09)
> +static void __reallocate_objects(struct intel_bb *ibb)
> +{
> +       uint32_t num;
> +
> +       if (ibb->num_objects == ibb->allocated_objects) {
> +               num = 4096 / sizeof(*ibb->objects);
> +               ibb->objects = realloc(ibb->objects,
> +                                      sizeof(*ibb->objects) * num);

sizeof(*ibb->objects) * (num + ibb->allocated_objects)

> +               igt_assert(ibb->objects);
> +               ibb->allocated_objects += num;
> +
> +               memset(&ibb->objects[ibb->num_objects], 0,
> +                      num * sizeof(*ibb->objects));
> +       }
> +}
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2020-05-19 18:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 18:16 [igt-dev] [PATCH i-g-t v5 0/8] Make gpgpu fill tests libdrm independent Zbigniew Kempczyński
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 1/8] lib/intel_bufops: Add bufops reference and adapt stride requirement Zbigniew Kempczyński
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 2/8] lib/rendercopy_bufmgr: Pass alignment during buffer initialization Zbigniew Kempczyński
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 3/8] lib/intel_batchbuffer: Introduce intel_bb Zbigniew Kempczyński
2020-05-19 18:50   ` Chris Wilson [this message]
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 4/8] lib/gpu_cmds: Add gpgpu pipeline functions based on intel_bb Zbigniew Kempczyński
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 5/8] lib/gpgpu_fill: libdrm-free gpgpu pipeline creation Zbigniew Kempczyński
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 6/8] lib/intel_batchbuffer: Introduce temporary igt_fillfunc_v2_t Zbigniew Kempczyński
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 7/8] tests/gem_gpgpu_fill: Remove libdrm dependency Zbigniew Kempczyński
2020-05-19 18:39   ` Chris Wilson
2020-05-19 18:16 ` [igt-dev] [PATCH i-g-t v5 8/8] HAX: run gpgpu_fill in BAT only Zbigniew Kempczyński
2020-05-19 19:48 ` [igt-dev] ✗ Fi.CI.BAT: failure for Make gpgpu fill tests libdrm independent (rev5) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=158991420499.8153.14200646045791402596@build.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=zbigniew.kempczynski@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.