st/mesa: call is_format_supported() for compressed formats
[mesa.git] / src / mesa / state_tracker / st_texture.c
index c80736ffd7ca08a9dce9f1df3342d4f931dcfe28..70ba239d07b02cfd24cfc94eb7a381f22a06e179 100644 (file)
@@ -31,9 +31,6 @@
 #include "st_cb_fbo.h"
 #include "st_inlines.h"
 #include "main/enums.h"
-#include "main/texfetch.h"
-#include "main/teximage.h"
-#include "main/texobj.h"
 
 #undef Elements  /* fix re-defined macro warning */
 
@@ -103,7 +100,7 @@ st_texture_create(struct st_context *st,
    pt.width0 = width0;
    pt.height0 = height0;
    pt.depth0 = depth0;
-   pt._usage = PIPE_USAGE_DEFAULT;
+   pt.usage = PIPE_USAGE_DEFAULT;
    pt.bind = bind;
    pt.flags = 0;