added SSCALED cases in fetch_attrib4()
authorBrian <brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 23:50:31 +0000 (17:50 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 23:50:31 +0000 (17:50 -0600)
src/mesa/pipe/draw/draw_vertex_fetch.c

index bc37e18c341925fa82998700d28f1e8c300c5cd4..de1cd06da6d5ef268dd047b44cf27ad9fedee7da 100644 (file)
@@ -62,6 +62,20 @@ fetch_attrib4(const void *ptr, unsigned format, float attrib[4])
    case PIPE_FORMAT_R32_FLOAT:
       attrib[0] = ((float *) ptr)[0];
       break;
+
+   case PIPE_FORMAT_R32G32B32A32_SSCALED:
+      attrib[3] = ((int *) ptr)[3];
+      /* fall-through */
+   case PIPE_FORMAT_R32G32B32_SSCALED:
+      attrib[2] = ((int *) ptr)[2];
+      /* fall-through */
+   case PIPE_FORMAT_R32G32_SSCALED:
+      attrib[1] = ((int *) ptr)[1];
+      /* fall-through */
+   case PIPE_FORMAT_R32_SSCALED:
+      attrib[0] = ((int *) ptr)[0];
+      break;
+
    default:
       assert(0);
    }