summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_context.h
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2010-07-27 20:15:17 -0400
committerJerome Glisse <jglisse@redhat.com>2010-07-27 20:18:32 -0400
commit641c9adb09e8707f659d42be600d16902ebf8895 (patch)
treedb9200b3266bbc931c2b2636ca31fe5c158b80a5 /src/gallium/drivers/r600/r600_context.h
parent25472942c9640f6c0d252de2f013d04ac2355b1d (diff)
r600g: texture support
Add texture mapping support, redbook/texbind works if you comment out glClear and second checkboard. Need to fix : - texture overwritting - lod & mip/map handling - unormalized coordinate handling - texture view with first leve > 0 - and many other things Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Diffstat (limited to 'src/gallium/drivers/r600/r600_context.h')
-rw-r--r--src/gallium/drivers/r600/r600_context.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_context.h b/src/gallium/drivers/r600/r600_context.h
index 669aaec0b2..30f33f757e 100644
--- a/src/gallium/drivers/r600/r600_context.h
+++ b/src/gallium/drivers/r600/r600_context.h
@@ -23,6 +23,7 @@
#ifndef R600_CONTEXT_H
#define R600_CONTEXT_H
+#include <stdio.h>
#include <pipe/p_state.h>
#include <pipe/p_context.h>
#include <tgsi/tgsi_scan.h>
@@ -45,6 +46,11 @@ struct r600_pipe_shader {
struct radeon_state *state;
};
+struct r600_texture_resource {
+ struct pipe_sampler_view view;
+ struct radeon_state *state;
+};
+
struct r600_context {
struct pipe_context context;
struct r600_screen *screen;
@@ -55,6 +61,12 @@ struct r600_context {
struct radeon_state *config;
struct r600_pipe_shader *ps_shader;
struct r600_pipe_shader *vs_shader;
+ unsigned nps_sampler;
+ struct radeon_state *ps_sampler[PIPE_MAX_ATTRIBS];
+ unsigned nps_view;
+ unsigned nvs_view;
+ struct r600_texture_resource *ps_view[PIPE_MAX_ATTRIBS];
+ struct r600_texture_resource *vs_view[PIPE_MAX_ATTRIBS];
unsigned flat_shade;
unsigned nvertex_buffer;
struct r600_vertex_elements_state *vertex_elements;