But some day we might (e.g. for blending 16 bpp formats on nv50).
C_SOURCES := \
nv50_context.c \
- nv50_draw.c \
nv50_formats.c \
nv50_miptree.c \
nv50_resource.c \
* SOFTWARE.
*/
-#include "draw/draw_context.h"
#include "pipe/p_defines.h"
#include "util/u_framebuffer.h"
+#ifdef NV50_WITH_DRAW_MODULE
+#include "draw/draw_context.h"
+#endif
+
#include "nv50_context.h"
#include "nv50_screen.h"
#include "nv50_resource.h"
nv50_context_unreference_resources(nv50);
+#ifdef NV50_WITH_DRAW_MODULE
draw_destroy(nv50->draw);
+#endif
FREE(nv50);
}
nv50_init_state_functions(nv50);
nv50_init_resource_functions(pipe);
+#ifdef NV50_WITH_DRAW_MODULE
+ /* no software fallbacks implemented */
nv50->draw = draw_create(pipe);
assert(nv50->draw);
draw_set_rasterize_stage(nv50->draw, nv50_draw_render_stage(nv50));
+#endif
nouveau_context_init_vdec(&nv50->base);
#include "util/u_inlines.h"
#include "util/u_dynarray.h"
+#ifdef NV50_WITH_DRAW_MODULE
#include "draw/draw_vertex.h"
+#endif
#include "nv50_debug.h"
#include "nv50_winsys.h"
boolean vbo_push_hint;
+#ifdef NV50_WITH_DRAW_MODULE
struct draw_context *draw;
+#endif
};
static INLINE struct nv50_context *
C_SOURCES := \
nvc0_context.c \
- nvc0_draw.c \
nvc0_formats.c \
nvc0_miptree.c \
nvc0_resource.c \
* SOFTWARE.
*/
-#include "draw/draw_context.h"
#include "pipe/p_defines.h"
#include "util/u_framebuffer.h"
+#ifdef NVC0_WITH_DRAW_MODULE
+#include "draw/draw_context.h"
+#endif
+
#include "nvc0_context.h"
#include "nvc0_screen.h"
#include "nvc0_resource.h"
nvc0_context_unreference_resources(nvc0);
+#ifdef NVC0_WITH_DRAW_MODULE
draw_destroy(nvc0->draw);
+#endif
FREE(nvc0);
}
nvc0_init_transfer_functions(nvc0);
nvc0_init_resource_functions(pipe);
+#ifdef NVC0_WITH_DRAW_MODULE
+ /* no software fallbacks implemented */
nvc0->draw = draw_create(pipe);
assert(nvc0->draw);
draw_set_rasterize_stage(nvc0->draw, nvc0_draw_render_stage(nvc0));
+#endif
nouveau_context_init_vdec(&nvc0->base);
#include "util/u_inlines.h"
#include "util/u_dynarray.h"
+#ifdef NVC0_WITH_DRAW_MODULE
#include "draw/draw_vertex.h"
+#endif
#include "nv50/nv50_debug.h"
#include "nvc0_winsys.h"
struct pipe_stream_output_target *tfbbuf[4];
unsigned num_tfbbufs;
+#ifdef NVC0_WITH_DRAW_MODULE
struct draw_context *draw;
+#endif
};
static INLINE struct nvc0_context *