dri: Change value param to unsigned
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Nov 2013 19:08:26 +0000 (11:08 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Nov 2013 22:49:27 +0000 (14:49 -0800)
This silences some compiler warnings in i915 and i965.  See also
75982a5.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/common/utils.c
src/mesa/drivers/dri/common/utils.h
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.c

index b30fca90302ceb6b8aba0a56d68b1a142e2d9405..9c9483209d8a41a4fba855f925b045e5832936e7 100644 (file)
@@ -494,7 +494,7 @@ driIndexConfigAttrib(const __DRIconfig *config, int index,
  * Zero if a recognized value of \c param is supplied, -1 otherwise.
  */
 int
-driQueryRendererIntegerCommon(__DRIscreen *psp, int param, int *value)
+driQueryRendererIntegerCommon(__DRIscreen *psp, int param, unsigned int *value)
 {
    switch (param) {
    case __DRI2_RENDERER_VERSION: {
index 5d6ef879eb8abbbc3777d3a38b5a91ccfb50beec..22af123c3b0db578305a824c5213ee5971bc9160 100644 (file)
@@ -66,6 +66,6 @@ driIndexConfigAttrib(const __DRIconfig *config, int index,
                     unsigned int *attrib, unsigned int *value);
 
 int
-driQueryRendererIntegerCommon(__DRIscreen *psp, int param, int *value);
+driQueryRendererIntegerCommon(__DRIscreen *psp, int param, unsigned int *value);
 
 #endif /* DRI_DEBUG_H */
index 1ef36207e6fb95937ff57253eb1071db0a0f7ed6..87f53e79ff890fc90cd7e16f74c5cbbb8a369b1b 100644 (file)
@@ -703,7 +703,7 @@ static struct __DRIimageExtensionRec intelImageExtension = {
 };
 
 static int
-i915_query_renderer_integer(__DRIscreen *psp, int param, int *value)
+i915_query_renderer_integer(__DRIscreen *psp, int param, unsigned int *value)
 {
    const struct intel_screen *const intelScreen =
       (struct intel_screen *) psp->driverPrivate;
index 10ebfb10b8eb88ccab4abc55e5f4083d6c4c81d3..e44d0f60986df330b9e0fa3431dd9bfda8d8c477 100644 (file)
@@ -805,7 +805,7 @@ static struct __DRIimageExtensionRec intelImageExtension = {
 };
 
 static int
-brw_query_renderer_integer(__DRIscreen *psp, int param, int *value)
+brw_query_renderer_integer(__DRIscreen *psp, int param, unsigned int *value)
 {
    const struct intel_screen *const intelScreen =
       (struct intel_screen *) psp->driverPrivate;