summaryrefslogtreecommitdiff
path: root/src/sna/brw
AgeCommit message (Collapse)Author
2018-05-31Rename current yuv->rgb shader sources to exa_wm_yuv_rgb_bt601Ville Syrjälä
Our current yuv->rgb shaders follow the BT.601 conversion formula. Rename the shader sources to indicate that fact. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-02-06meson: Add meson build systemVille Syrjälä
Allow building the driver with meson. Could probably use plenty of cleanups, but at least it gives me a working driver. And I think I managed to make it build everything that autotools builds. Quite a few compiler warnings were suppressed as well. Might want to look at those at some point. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-11-11brw_eu_emit.c: fix wrong test on a register typeSergei Trofimovich
Caught by gcc-6 as: brw_eu_emit.c:180:49: warning: logical 'and' of equal expressions [-Wlogical-op] if (reg.file == BRW_ARCHITECTURE_REGISTER_FILE && reg.file == BRW_ARF_NULL) return; Change uses 'reg.nr' test for 'BRW_ARF_NULL'. Signed-off-by: Sergei Trofimovich <siarheit@google.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-06-09Fix typos found with codespell v1.7Sedat Dilek
To get codespell v1.7 check [2]. [1] https://github.com/lucasdemarchi/codespell [2] https://github.com/lucasdemarchi/codespell/releases Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
2014-12-01sna: Validate that the reg/insn size is well definedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-10-31sna/gen6+: Fix projective sample coordinatesChris Wilson
Reported-by: "Ding, Chi" <chix.ding@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-10-31sna/brw: Fix EU tests to select the right genChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-10sna: Emit assertions with FatalErrorChris Wilson
The intention is to be able to capture the assertion in the Xorg.0.log (journald equivalent). At the moment, it is emitted to stderr which is difficult to capture and defeats the goal of only asking the reporter to upload one log file. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-08Revert "sna: Remove spurious SAMPLER writemask for gen4"Chris Wilson
This reverts commit 4966f8374a068ca2a533e30594bfd333551ffd37. Not so spurious after all! Reported-by: Michal Suchanek Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-01-07sna: Remove spurious SAMPLER writemask for gen4Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-25sna: Keep @NOWARNFLAGS@ lastChris Wilson
As the last option overrides the earlier options, make sure these particular overrides always take effect by adding them last. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-18Remove defunct file 'brw_eu_util.c' from gitChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-14sna/gen6: Fix the invert fixChris Wilson
Eek, missed that 8-wide dispatch branch still had the opposite fix that I was testing first. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-10-14sna/gen6+: Fix calculation of 1/z for projective texturesChris Wilson
A typo crept in causing the shader to read from the wrong temporaries for the invert operation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-29intel: Suppress some extremely noisy warningsChris Wilson
Warning about redundant declarations within the xorg headers hides genuine warnings in our own code - disable them until the headers are cleaned up. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-06-24sna: Remove unused brw_eu_debug.cChris Wilson
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-11-30Convert generation counter to octalChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-11-13sna/gen4,5: Fix the opacity shader to use the right vertex attributeChris Wilson
Reported-by: Edward Sheldrake <ejsheldrake@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57054 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-05sna: Format markup to suppress compiler warningChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-01sna: Fix computation of st values for SIMD8 dispatchChris Wilson
Fixes regression with enabling 8-pixels. Reported-by: Mehran Kholdi <semekh.dev@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53044 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-01sna/gen4+: Implement an opacity shaderChris Wilson
Avoid the cumbersome lookup through the alpha gradient texture and simply multiply the incoming opacity value. The next step will be to reduce the number of floats required per vertex. Now that we have removed the primary user of the alpha solid cache, it may be time to retire that as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-31sna: Generate shaders for SNB+ 8-pixel dispatchChris Wilson
Not ideal yet, sampling an alpha-only surface using SIMD8 only seems to ever return 0... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-30sna: Assemble SF and WM kernels using brwChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-07-30sna: Add the brw assemblerChris Wilson
In order to construct programs on the fly to cater for the combinatorial number of possible shaders, we need an assembler, whilst also taking the opportunity to remove some of the inefficiencies and mistakes from the current shaders. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>