gallium: fix more statetrackers/drivers for not using texture width/height/depth...
[mesa.git] / src / gallium / winsys / drm / nouveau / drm / nouveau_drm_api.c
index 317dc44d22f805b3f0a0e9136034374b4207ed1b..d4978613247c74222b4a2c2229002e586270755d 100644 (file)
@@ -24,10 +24,10 @@ dri_surface_from_handle(struct drm_api *api, struct pipe_screen *pscreen,
        tmpl.tex_usage = PIPE_TEXTURE_USAGE_PRIMARY;
        tmpl.target = PIPE_TEXTURE_2D;
        tmpl.last_level = 0;
-       tmpl.depth[0] = 1;
+       tmpl.depth0 = 1;
        tmpl.format = format;
-       tmpl.width[0] = width;
-       tmpl.height[0] = height;
+       tmpl.width0 = width;
+       tmpl.height0 = height;
        pf_get_block(tmpl.format, &tmpl.block);
 
        pt = api->texture_from_shared_handle(api, pscreen, &tmpl,