Skip to content
Snippets Groups Projects
Commit e9ec0ed6 authored by Chris Wilson's avatar Chris Wilson :thinking:
Browse files

i915/gem_ctx_engine: Skip redundant clear of a fresh buffer


No need to memset(0) the mapping of a fresh buffer, as we expect it to
be 0 already.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarChuansheng Liu <chuansheng.liu@intel.com>
parent 97fbc5e1
No related branches found
No related tags found
No related merge requests found
Pipeline #96907 passed
...@@ -454,7 +454,6 @@ static void independent(int i915) ...@@ -454,7 +454,6 @@ static void independent(int i915)
map = gem_mmap__cpu(i915, results.handle, 0, 4096, PROT_READ); map = gem_mmap__cpu(i915, results.handle, 0, 4096, PROT_READ);
gem_set_domain(i915, results.handle, gem_set_domain(i915, results.handle,
I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU);
memset(map, 0, 4096);
for (int i = 0; i < I915_EXEC_RING_MASK + 1; i++) { for (int i = 0; i < I915_EXEC_RING_MASK + 1; i++) {
struct drm_i915_gem_exec_object2 obj[2] = { struct drm_i915_gem_exec_object2 obj[2] = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment