uxa: Get rid of -Wno-shift-negative-value

The minimum CS URB entry size is 1. Let's use that
instead of 0 so that we don't end up left shifting
a -1.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
Ville Syrjälä 2019-09-15 12:51:35 +03:00
parent e95e9d41ca
commit 97058e38d8
3 changed files with 2 additions and 3 deletions

View File

@ -277,7 +277,7 @@ i965_check_composite_texture(ScreenPtr screen, PicturePtr picture)
/* Set up a default static partitioning of the URB, which is supposed to
* allow anything we would want to do, at potentially lower performance.
*/
#define URB_CS_ENTRY_SIZE 0
#define URB_CS_ENTRY_SIZE 1
#define URB_CS_ENTRIES 0
#define URB_VS_ENTRY_SIZE 1 // each 512-bit row

View File

@ -378,7 +378,7 @@ static void i965_post_draw_debug(ScrnInfoPtr scrn)
#define URB_SF_ENTRY_SIZE 2
#define URB_CS_ENTRIES 0
#define URB_CS_ENTRY_SIZE 0
#define URB_CS_ENTRY_SIZE 1
static void i965_create_dst_surface_state(ScrnInfoPtr scrn,
PixmapPtr pixmap,

View File

@ -58,7 +58,6 @@ uxa = static_library('uxa',
include_directories : inc,
c_args : [
'-Wno-deprecated-declarations',
'-Wno-shift-negative-value',
'-Wno-unused-parameter',
'-Wno-sign-compare',
],