fd5_launch_grid(struct fd_context *ctx, const struct pipe_grid_info *info)
{
struct fd5_compute_stateobj *so = ctx->compute;
- struct ir3_shader_key key = {0};
+ struct ir3_shader_key key = {};
struct ir3_shader_variant *v;
struct fd_ringbuffer *ring = ctx->batch->draw;
unsigned i, nglobal = 0;
mtx_unlock(&ctx->screen->lock);
- struct pipe_blit_info blit = {0};
+ struct pipe_blit_info blit = {};
blit.dst.resource = prsc;
blit.dst.format = prsc->format;
blit.src.resource = pshadow;
fd_blit_from_staging(struct fd_context *ctx, struct fd_transfer *trans)
{
struct pipe_resource *dst = trans->base.resource;
- struct pipe_blit_info blit = {0};
+ struct pipe_blit_info blit = {};
blit.dst.resource = dst;
blit.dst.format = dst->format;
fd_blit_to_staging(struct fd_context *ctx, struct fd_transfer *trans)
{
struct pipe_resource *src = trans->base.resource;
- struct pipe_blit_info blit = {0};
+ struct pipe_blit_info blit = {};
blit.src.resource = src;
blit.src.format = src->format;
fd_batch_reference(&write_batch, rsc->write_batch);
if (usage & PIPE_TRANSFER_WRITE) {
- struct fd_batch *batch, *batches[32] = {0};
+ struct fd_batch *batch, *batches[32] = {};
uint32_t batch_mask;
/* This is a bit awkward, probably a fd_batch_flush_locked()
#endif
};
-typedef struct nir_register nir_register;
-
struct ir3_array {
struct list_head node;
unsigned length;
unsigned id;
- nir_register *r;
+ struct nir_register *r;
/* To avoid array write's from getting DCE'd, keep track of the
* most recent write. Any array access depends on the most
struct ir3_array * ir3_lookup_array(struct ir3 *ir, unsigned id);
-typedef struct nir_block nir_block;
-
struct ir3_block {
struct list_head node;
struct ir3 *shader;
- const nir_block *nblock;
+ const struct nir_block *nblock;
struct list_head instr_list; /* list of ir3_instruction */
while (n < argc) {
char *filename = argv[n];
- char *ext = rindex(filename, '.');
+ char *ext = strrchr(filename, '.');
if (strcmp(ext, ".tgsi") == 0) {
if (num_files != 0)
struct ir3_shader *shader;
};
-typedef struct nir_shader nir_shader;
-
struct ir3_shader {
enum shader_t type;
struct ir3_compiler *compiler;
- nir_shader *nir;
+ struct nir_shader *nir;
struct pipe_stream_output_info stream_output;
struct ir3_shader_variant *variants;