summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_context.c
diff options
context:
space:
mode:
authorChris Wilson2016-08-02 23:50:37 +0200
committerChris Wilson2016-08-02 23:58:31 +0200
commit15d21db87239840ae8248cf26e46391edc13cfe3 (patch)
treecac896b83267c4df0b0dd347eef0cf601b70faff /drivers/gpu/drm/i915/i915_gem_context.c
parentdrm/i915: Remove duplicate golden render state init from execlists (diff)
downloadkernel-qcow2-linux-15d21db87239840ae8248cf26e46391edc13cfe3.tar.gz
kernel-qcow2-linux-15d21db87239840ae8248cf26e46391edc13cfe3.tar.xz
kernel-qcow2-linux-15d21db87239840ae8248cf26e46391edc13cfe3.zip
drm/i915: Refactor golden render state emission to unconfuse gcc
GCC was inlining the init and setup functions, but was getting itself confused into thinking that variables could be used uninitialised. If we do the inline for gcc, it is happy! As a bonus we shrink the code. v2: A couple of minor tweaks from Joonas Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1469432687-22756-29-git-send-email-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1470174640-18242-20-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_context.c')
0 files changed, 0 insertions, 0 deletions