r300g: Fix a number of warnings

Seriously guys....
This commit is contained in:
Nicolai Hähnle 2009-09-06 15:10:59 +02:00
parent 4b01e6f614
commit 1ddb22675c
10 changed files with 23 additions and 10 deletions

View File

@ -22,6 +22,9 @@
#include "r300_context.h"
#include "r300_flush.h"
#include "r300_state_invariant.h"
static boolean r300_draw_range_elements(struct pipe_context* pipe,
struct pipe_buffer* indexBuffer,
unsigned indexSize,

View File

@ -211,10 +211,7 @@ struct r300_vertex_format {
int fs_tab[16];
};
static struct pipe_viewport_state r300_viewport_identity = {
.scale = {1.0, 1.0, 1.0, 1.0},
.translate = {0.0, 0.0, 0.0, 0.0},
};
extern struct pipe_viewport_state r300_viewport_identity;
struct r300_context {
/* Parent class */

View File

@ -25,6 +25,7 @@
#include "r300_emit.h"
#include "r300_fs.h"
#include "r300_state_derived.h"
#include "r300_vs.h"
void r300_emit_blend_state(struct r300_context* r300,

View File

@ -56,6 +56,11 @@ void r500_emit_fragment_program_code(struct r300_context* r300,
void r300_emit_fb_state(struct r300_context* r300,
struct pipe_framebuffer_state* fb);
void r300_emit_query_begin(struct r300_context* r300,
struct r300_query* query);
void r300_emit_query_end(struct r300_context* r300,
struct r300_query* query);
void r300_emit_rs_state(struct r300_context* r300, struct r300_rs_state* rs);
void r300_emit_rs_block_state(struct r300_context* r300,

View File

@ -22,6 +22,8 @@
#include "r300_query.h"
#include "r300_emit.h"
static struct pipe_query* r300_create_query(struct pipe_context* pipe,
unsigned query_type)
{

View File

@ -26,6 +26,7 @@
#include "r300_cs.h"
#include "r300_context.h"
#include "r300_emit.h"
#include "r300_reg.h"
#include "r300_state_derived.h"

View File

@ -20,10 +20,11 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "util/u_debug.h"
#include "util/u_math.h"
#include "util/u_pack_color.h"
#include "util/u_debug.h"
#include "tgsi/tgsi_parse.h"
#include "pipe/p_config.h"
#include "pipe/internal/p_winsys_screen.h"

View File

@ -23,6 +23,7 @@
#include "r300_state_derived.h"
#include "r300_fs.h"
#include "r300_state_inlines.h"
#include "r300_vs.h"
/* r300_state_derived: Various bits of state which are dependent upon

View File

@ -23,11 +23,7 @@
#ifndef R300_STATE_DERIVED_H
#define R300_STATE_DERIVED_H
#include "draw/draw_vertex.h"
#include "r300_context.h"
#include "r300_reg.h"
#include "r300_state_inlines.h"
struct r300_context;
void r300_update_derived_state(struct r300_context* r300);

View File

@ -23,6 +23,12 @@
#include "r300_state_invariant.h"
struct pipe_viewport_state r300_viewport_identity = {
.scale = {1.0, 1.0, 1.0, 1.0},
.translate = {0.0, 0.0, 0.0, 0.0},
};
/* Calculate and emit invariant state. This is data that the 3D engine
* will probably want at the beginning of every CS, but it's not currently
* handled by any CSO setup, and in addition it doesn't really change much.